Skip to content

Commit be65ebd

Browse files
committed
add SPDX indentifier, modify 450zi.icf file and static definition in us_ticker.c
1 parent 04c0e4f commit be65ebd

File tree

3 files changed

+8
-6
lines changed

3 files changed

+8
-6
lines changed

features/netsocket/emac-drivers/TARGET_GD_EMAC/TARGET_GD32F4XX/gd32f4_eth_init.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
/* mbed Microcontroller Library
22
* Copyright (c) 2018 GigaDevice Semiconductor Inc.
33
*
4+
* SPDX-License-Identifier: Apache-2.0
5+
*
46
* Licensed under the Apache License, Version 2.0 (the "License");
57
* you may not use this file except in compliance with the License.
68
* You may obtain a copy of the License at

targets/TARGET_GigaDevice/TARGET_GD32F4XX/TARGET_GD32F450ZI/device/TOOLCHAIN_IAR/gd32f450zi.icf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ define symbol __ICFEDIT_region_RAM_start__ = 0x200001B0;
1717
define symbol __ICFEDIT_region_RAM_end__ = 0x2002FFFF;
1818

1919
/*-Sizes-*/
20-
define symbol __ICFEDIT_size_cstack__ = 0x3000;
20+
define symbol __ICFEDIT_size_cstack__ = 0x400;
2121
define symbol __ICFEDIT_size_heap__ = 0x10000;
2222
/**** End of ICF editor section. ###ICF###*/
2323

targets/TARGET_GigaDevice/TARGET_GD32F4XX/us_ticker.c

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -21,16 +21,16 @@
2121
#include "hal_tick.h"
2222

2323
#if TICKER_TIMER_WIDTH_BIT == 16
24-
uint32_t time_before;
25-
uint32_t total_elapsed_time;
24+
static uint32_t time_before;
25+
static uint32_t total_elapsed_time;
2626
#endif
2727

2828
/* this variable is set to 1 at the end of mbed_sdk_init function.
2929
the ticker_read_us() function must not be called until the mbed_sdk_init is terminated */
3030
extern int mbed_sdk_inited;
31-
uint32_t ticker_timer_cnt;
32-
uint32_t ticker_timer_ch0cv;
33-
uint32_t ticker_timer_dmainten;
31+
static uint32_t ticker_timer_cnt;
32+
static uint32_t ticker_timer_ch0cv;
33+
static uint32_t ticker_timer_dmainten;
3434

3535
void ticker_timer_init(void);
3636
#if TICKER_TIMER_WIDTH_BIT == 16

0 commit comments

Comments
 (0)