mbed library sources. Supersedes mbed-src.
Dependents: Nucleo_Hello_Encoder BLE_iBeaconScan AM1805_DEMO DISCO-F429ZI_ExportTemplate1 ... more
Diff: targets/TARGET_NUVOTON/mbed_rtx.h
- Revision:
- 187:0387e8f68319
- Parent:
- 174:b96e65c34a4d
- Child:
- 188:bcfe06ba3d64
--- a/targets/TARGET_NUVOTON/mbed_rtx.h Fri Jun 22 16:45:37 2018 +0100 +++ b/targets/TARGET_NUVOTON/mbed_rtx.h Thu Sep 06 13:40:20 2018 +0100 @@ -31,14 +31,14 @@ #define ISR_STACK_START ((unsigned char*)Image$$ARM_LIB_STACK$$ZI$$Base) #define ISR_STACK_SIZE ((uint32_t)Image$$ARM_LIB_STACK$$ZI$$Length) #elif defined(__GNUC__) - extern uint32_t __StackTop[]; - extern uint32_t __StackLimit[]; - extern uint32_t __end__[]; - extern uint32_t __HeapLimit[]; - #define HEAP_START ((unsigned char*)__end__) - #define HEAP_SIZE ((uint32_t)((uint32_t)__HeapLimit - (uint32_t)HEAP_START)) - #define ISR_STACK_START ((unsigned char*)__StackLimit) - #define ISR_STACK_SIZE ((uint32_t)((uint32_t)__StackTop - (uint32_t)__StackLimit)) + extern uint32_t __StackTop; + extern uint32_t __StackLimit; + extern uint32_t __end__; + extern uint32_t __HeapLimit; + #define HEAP_START ((unsigned char*) &__end__) + #define HEAP_SIZE ((uint32_t) ((uint32_t) &__HeapLimit - (uint32_t) HEAP_START)) + #define ISR_STACK_START ((unsigned char*) &__StackLimit) + #define ISR_STACK_SIZE ((uint32_t)((uint32_t) &__StackTop - (uint32_t) &__StackLimit)) #elif defined(__ICCARM__) /* No region declarations needed */ #else