Official mbed Real Time Operating System based on the RTX implementation of the CMSIS-RTOS API open standard.
Dependents: denki-yohou_b TestY201 Network-RTOS NTPClient_HelloWorld ... more
Deprecated
This is the mbed 2 rtos library. mbed OS 5 integrates the mbed library with mbed-rtos. With this, we have provided thread safety for all mbed APIs. If you'd like to learn about using mbed OS 5, please see the docs.
Diff: rtx/TARGET_CORTEX_M/RTX_CM_lib.h
- Revision:
- 53:c35dab33c427
- Parent:
- 52:02f5cf381388
- Child:
- 56:2b2a7cc13e28
--- a/rtx/TARGET_CORTEX_M/RTX_CM_lib.h Fri Nov 21 09:45:08 2014 +0000 +++ b/rtx/TARGET_CORTEX_M/RTX_CM_lib.h Wed Nov 26 08:00:25 2014 +0000 @@ -294,6 +294,9 @@ #elif defined(__GNUC__) extern unsigned char __end__[]; #define HEAP_START (__end__) +#elif defined(__ICCARM__) +#pragma section="HEAP" +#define HEAP_START (void *)__section_begin("HEAP") #endif void set_main_stack(void) { @@ -444,6 +447,7 @@ __iar_data_init3(); } osKernelInitialize(); + set_main_stack(); osThreadCreate(&os_thread_def_main, NULL); a = osKernelStart(); exit(a);