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_A/cmsis_os.h
- Revision:
- 85:ef0a22cdf839
- Parent:
- 49:77c8e4604045
- Child:
- 92:bc9729798a19
--- a/rtx/TARGET_CORTEX_A/cmsis_os.h Wed Jun 17 10:00:10 2015 +0100 +++ b/rtx/TARGET_CORTEX_A/cmsis_os.h Wed Jun 17 11:15:10 2015 +0100 @@ -264,6 +264,9 @@ osPriority tpriority; ///< initial thread priority uint32_t instances; ///< maximum number of instances of that thread function uint32_t stacksize; ///< stack size requirements in bytes; 0 is default stack size +#ifdef __MBED_CMSIS_RTOS_CA9 + uint32_t *stack_pointer; ///< pointer to the stack memory block +#endif } osThreadDef_t; /// Timer Definition structure contains timer parameters. @@ -356,10 +359,11 @@ #define osThreadDef(name, priority, instances, stacksz) \ extern const osThreadDef_t os_thread_def_##name #else // define the object -#if defined (__MBED_CMSIS_RTOS_CA9) +#ifdef __MBED_CMSIS_RTOS_CA9 #define osThreadDef(name, priority, stacksz) \ +uint32_t os_thread_def_stack_##name [stacksz / sizeof(uint32_t)]; \ const osThreadDef_t os_thread_def_##name = \ -{ (name), (priority), 1, (stacksz) } +{ (name), (priority), 1, (stacksz), (os_thread_def_stack_##name) } #else #define osThreadDef(name, priority, instances, stacksz) \ const osThreadDef_t os_thread_def_##name = \