Skip to content

Commit b2e189f

Browse files
author
Deepika
committed
Target_Nuvoton: Remove target specific implementation of _sbrk
1 parent 8c63dbe commit b2e189f

File tree

6 files changed

+4
-225
lines changed

6 files changed

+4
-225
lines changed

targets/TARGET_NUVOTON/TARGET_M2351/device/TOOLCHAIN_GCC_ARM/m2351_retarget.c

Lines changed: 0 additions & 42 deletions
This file was deleted.

targets/TARGET_NUVOTON/TARGET_M451/device/TOOLCHAIN_GCC_ARM/m451_retarget.c

Lines changed: 0 additions & 42 deletions
This file was deleted.

targets/TARGET_NUVOTON/TARGET_M480/device/TOOLCHAIN_GCC_ARM/m480_retarget.c

Lines changed: 0 additions & 42 deletions
This file was deleted.

targets/TARGET_NUVOTON/TARGET_NANO100/device/TOOLCHAIN_GCC_ARM/nano100_retarget.c

Lines changed: 0 additions & 42 deletions
This file was deleted.

targets/TARGET_NUVOTON/TARGET_NUC472/device/TOOLCHAIN_GCC_ARM/nuc472_retarget.c

Lines changed: 0 additions & 42 deletions
This file was deleted.

targets/TARGET_NUVOTON/mbed_rtx.h

Lines changed: 4 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -21,24 +21,13 @@
2121

2222
#if defined(TARGET_NUVOTON)
2323

24-
#if defined(__CC_ARM) || (defined(__ARMCC_VERSION) && (__ARMCC_VERSION >= 6010050))
24+
#if defined(__ARMCC_VERSION)
2525
extern uint32_t Image$$ARM_LIB_HEAP$$ZI$$Base[];
2626
extern uint32_t Image$$ARM_LIB_HEAP$$ZI$$Length[];
27-
extern uint32_t Image$$ARM_LIB_STACK$$ZI$$Base[];
28-
extern uint32_t Image$$ARM_LIB_STACK$$ZI$$Length[];
29-
#define HEAP_START ((unsigned char*) Image$$ARM_LIB_HEAP$$ZI$$Base)
30-
#define HEAP_SIZE ((uint32_t) Image$$ARM_LIB_HEAP$$ZI$$Length)
31-
#define ISR_STACK_START ((unsigned char*)Image$$ARM_LIB_STACK$$ZI$$Base)
32-
#define ISR_STACK_SIZE ((uint32_t)Image$$ARM_LIB_STACK$$ZI$$Length)
27+
#define HEAP_START Image$$ARM_LIB_HEAP$$ZI$$Base
28+
#define HEAP_SIZE Image$$ARM_LIB_HEAP$$ZI$$Length
3329
#elif defined(__GNUC__)
34-
extern uint32_t __StackTop;
35-
extern uint32_t __StackLimit;
36-
extern uint32_t __end__;
37-
extern uint32_t __HeapLimit;
38-
#define HEAP_START ((unsigned char*) &__end__)
39-
#define HEAP_SIZE ((uint32_t) ((uint32_t) &__HeapLimit - (uint32_t) HEAP_START))
40-
#define ISR_STACK_START ((unsigned char*) &__StackLimit)
41-
#define ISR_STACK_SIZE ((uint32_t)((uint32_t) &__StackTop - (uint32_t) &__StackLimit))
30+
/* No region declarations needed */
4231
#elif defined(__ICCARM__)
4332
/* No region declarations needed */
4433
#else

0 commit comments

Comments
 (0)