Analog devices: overwrite cmsis startup

define __PROGRAM_START so we use own startup as AD had it defined, this fixes the conflicts with
CMSIS_5 update (they introduced low level init).
pull/12949/head
Martin Kojtal 2020-05-13 11:39:28 +01:00
parent 2c8be47525
commit 067630a2dd
5 changed files with 9 additions and 4 deletions

View File

@ -47,7 +47,9 @@ EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
#ifdef __ARMCC_VERSION
#include <rt_misc.h>
#endif
#define __PROGRAM_START
#include <cmsis.h>
#undef __PROGRAM_START
#include <startup_ADuCM3029.h>
#include <mbed_rtx.h>

View File

@ -34,7 +34,9 @@
Portions Copyright (c) 2016 - 2017 Analog Devices, Inc.
---------------------------------------------------------------------------*/
#define __PROGRAM_START
#include <cmsis.h>
#undef __PROGRAM_START
#include <adi_pwr.h>
#include <adi_gpio.h>
#include <startup_ADuCM3029.h>

View File

@ -47,7 +47,10 @@ EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
#ifdef __ARMCC_VERSION
#include <rt_misc.h>
#endif
#define __PROGRAM_START
#include <cmsis.h>
#undef __PROGRAM_START
#include <startup_ADuCM4050.h>
#include <mbed_rtx.h>

View File

@ -102,10 +102,6 @@ extern uint32_t Load$$LR$$LR_IROM1$$Base[];
extern uint32_t __etext;
extern uint32_t __data_start__;
extern uint32_t __data_end__;
extern uint32_t __copy_table_start__;
extern uint32_t __copy_table_end__;
extern uint32_t __zero_table_start__;
extern uint32_t __zero_table_end__;
extern uint32_t __bss_start__;
extern uint32_t __bss_end__;
extern uint32_t __StackTop;

View File

@ -35,7 +35,9 @@
Portions Copyright (c) 2016 - 2017 Analog Devices, Inc.
---------------------------------------------------------------------------*/
#define __PROGRAM_START
#include <cmsis.h>
#undef __PROGRAM_START
#include <adi_pwr.h>
#include <startup_ADuCM4050.h>