Make RTX using ARMCC aware of reserved stack and heap

pull/3467/head
Steven Cooreman 2016-11-08 18:32:50 +01:00 committed by Anna Bridge
parent 4ea645abcc
commit 8486cb67cf
1 changed files with 14 additions and 0 deletions

View File

@ -23,6 +23,20 @@
#define OS_CLOCK REFERENCE_FREQUENCY
#endif
#if defined(__CC_ARM)
extern uint32_t HEAP$$Base;
extern uint32_t HEAP$$Limit;
extern uint32_t STACK$$Limit;
extern uint32_t STACK$$Base;
#ifndef INITIAL_SP
#define INITIAL_SP ((uint32_t)&STACK$$Limit)
#endif
#define ISR_STACK_START ((uint32_t)&STACK$$Base)
#define ISR_STACK_SIZE ((uint32_t) ((uint32_t)&STACK$$Limit - (uint32_t)&STACK$$Base))
#define HEAP_START ((unsigned char*) ((uint32_t)&HEAP$$Base))
#define HEAP_SIZE ((uint32_t) ((uint32_t)&HEAP$$Limit - (uint32_t)&HEAP$$Base))
#endif
#if defined(TARGET_EFM32GG_STK3700)
#ifndef INITIAL_SP