mirror of https://github.com/ARMmbed/mbed-os.git
Enable dynamic heap with ARMCC
When using ARM Compiler 5, the RTX config hard-coded the heap and stack sizes to specific values. This prevented the RTX HAL from dynamically allocating unused memory as heap space. Specifically, the HEAP_START define prevents this logic in RTX_CM_lib.h from activating. The rest of the defines are also set in that header, and should be removed from here.pull/4521/head
parent
745a1ed17d
commit
ceecd123f8
|
@ -20,20 +20,6 @@
|
||||||
#include <stdint.h>
|
#include <stdint.h>
|
||||||
#include "clocking.h"
|
#include "clocking.h"
|
||||||
|
|
||||||
#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)
|
#if defined(TARGET_EFM32GG_STK3700)
|
||||||
|
|
||||||
#ifndef INITIAL_SP
|
#ifndef INITIAL_SP
|
||||||
|
|
Loading…
Reference in New Issue