add SPDX indentifier, modify 450zi.icf file and static definition in us_ticker.c

pull/9232/head
c_jin 2019-01-07 11:03:54 +08:00
parent 04c0e4fe5c
commit be65ebd038
3 changed files with 8 additions and 6 deletions

View File

@ -1,6 +1,8 @@
/* mbed Microcontroller Library /* mbed Microcontroller Library
* Copyright (c) 2018 GigaDevice Semiconductor Inc. * Copyright (c) 2018 GigaDevice Semiconductor Inc.
* *
* SPDX-License-Identifier: Apache-2.0
*
* Licensed under the Apache License, Version 2.0 (the "License"); * Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License. * you may not use this file except in compliance with the License.
* You may obtain a copy of the License at * You may obtain a copy of the License at

View File

@ -17,7 +17,7 @@ define symbol __ICFEDIT_region_RAM_start__ = 0x200001B0;
define symbol __ICFEDIT_region_RAM_end__ = 0x2002FFFF; define symbol __ICFEDIT_region_RAM_end__ = 0x2002FFFF;
/*-Sizes-*/ /*-Sizes-*/
define symbol __ICFEDIT_size_cstack__ = 0x3000; define symbol __ICFEDIT_size_cstack__ = 0x400;
define symbol __ICFEDIT_size_heap__ = 0x10000; define symbol __ICFEDIT_size_heap__ = 0x10000;
/**** End of ICF editor section. ###ICF###*/ /**** End of ICF editor section. ###ICF###*/

View File

@ -21,16 +21,16 @@
#include "hal_tick.h" #include "hal_tick.h"
#if TICKER_TIMER_WIDTH_BIT == 16 #if TICKER_TIMER_WIDTH_BIT == 16
uint32_t time_before; static uint32_t time_before;
uint32_t total_elapsed_time; static uint32_t total_elapsed_time;
#endif #endif
/* this variable is set to 1 at the end of mbed_sdk_init function. /* this variable is set to 1 at the end of mbed_sdk_init function.
the ticker_read_us() function must not be called until the mbed_sdk_init is terminated */ the ticker_read_us() function must not be called until the mbed_sdk_init is terminated */
extern int mbed_sdk_inited; extern int mbed_sdk_inited;
uint32_t ticker_timer_cnt; static uint32_t ticker_timer_cnt;
uint32_t ticker_timer_ch0cv; static uint32_t ticker_timer_ch0cv;
uint32_t ticker_timer_dmainten; static uint32_t ticker_timer_dmainten;
void ticker_timer_init(void); void ticker_timer_init(void);
#if TICKER_TIMER_WIDTH_BIT == 16 #if TICKER_TIMER_WIDTH_BIT == 16