The official Mbed 2 C/C++ SDK provides the software platform and libraries to build your applications.
Dependents: hello SerialTestv11 SerialTestv12 Sierpinski ... more
mbed 2
This is the mbed 2 library. If you'd like to learn about Mbed OS please see the mbed-os docs.
Diff: TARGET_EFM32GG_STK3700/TARGET_Silicon_Labs/mbed_rtx.h
- Revision:
- 132:9baf128c2fab
- Parent:
- 128:9bcdf88f62b0
- Child:
- 139:856d2700e60b
--- a/TARGET_EFM32GG_STK3700/TARGET_Silicon_Labs/mbed_rtx.h Thu Dec 15 11:17:48 2016 +0000 +++ b/TARGET_EFM32GG_STK3700/TARGET_Silicon_Labs/mbed_rtx.h Tue Dec 20 15:36:52 2016 +0000 @@ -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 @@ -88,6 +102,19 @@ #define OS_MAINSTKSIZE 128 #endif +#elif defined(TARGET_EFR32MG1) + +#ifndef INITIAL_SP +#define INITIAL_SP (0x20007C00UL) +#endif + +#ifndef OS_TASKCNT +#define OS_TASKCNT 5 +#endif +#ifndef OS_MAINSTKSIZE +#define OS_MAINSTKSIZE 256 +#endif + #endif #endif // MBED_MBED_RTX_H