Clone of mbed rtos 2 for easy accessibility.
Fork of mbed-rtos by
Diff: rtx/TARGET_CORTEX_M/rt_System.c
- Revision:
- 118:6635230e06ba
- Parent:
- 112:53ace74b190c
- Child:
- 120:4dc938e301cc
--- a/rtx/TARGET_CORTEX_M/rt_System.c Mon May 23 11:00:15 2016 +0100 +++ b/rtx/TARGET_CORTEX_M/rt_System.c Mon Jul 25 14:12:24 2016 +0100 @@ -315,7 +315,7 @@ __weak void rt_stk_check (void) { #ifdef __MBED_CMSIS_RTOS_CM /* Check for stack overflow. */ - if (os_tsk.run->task_id == 0x02) { + if (os_tsk.run->task_id == MAIN_THREAD_ID) { // TODO: For the main thread the check should be done against the main heap pointer } else { if ((os_tsk.run->tsk_stack < (U32)os_tsk.run->stack) ||