mbed library sources. Supersedes mbed-src.

Dependents:   BREAK_SENSOR_LED

Fork of mbed-dev by mbed official

Revision:
172:7d866c31b3c5
Parent:
167:e84263d55307
Child:
174:b96e65c34a4d
diff -r 89b338f31ef1 -r 7d866c31b3c5 targets/TARGET_NUVOTON/mbed_rtx.h
--- a/targets/TARGET_NUVOTON/mbed_rtx.h	Wed Aug 16 18:27:13 2017 +0100
+++ b/targets/TARGET_NUVOTON/mbed_rtx.h	Thu Aug 31 17:27:04 2017 +0100
@@ -19,7 +19,7 @@
 
 #include <stdint.h>
 
-#if defined(TARGET_NUMAKER_PFM_NUC472)
+#if defined(TARGET_NUVOTON)
 
 #if defined(__CC_ARM)
     extern uint32_t               Image$$ARM_LIB_HEAP$$ZI$$Base[];
@@ -45,32 +45,6 @@
     #error "no toolchain defined"
 #endif
 
-#elif defined(TARGET_NUMAKER_PFM_M453)
-
-#if defined(__CC_ARM)
-    extern uint32_t               Image$$ARM_LIB_HEAP$$ZI$$Base[];
-    extern uint32_t               Image$$ARM_LIB_HEAP$$ZI$$Length[];
-    extern uint32_t               Image$$ARM_LIB_STACK$$ZI$$Base[];
-    extern uint32_t               Image$$ARM_LIB_STACK$$ZI$$Length[];
-    #define HEAP_START            ((unsigned char*) Image$$ARM_LIB_HEAP$$ZI$$Base)
-    #define HEAP_SIZE             ((uint32_t) Image$$ARM_LIB_HEAP$$ZI$$Length)
-    #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))
-#elif defined(__ICCARM__)
-    /* No region declarations needed */
-#else
-    #error "no toolchain defined"
-#endif
-
-#endif
+#endif  // TARGET_NUVOTON
 
 #endif  // MBED_MBED_RTX_H