Official mbed Real Time Operating System based on the RTX implementation of the CMSIS-RTOS API open standard.
Fork of mbed-rtos by
Diff: rtx/TARGET_CORTEX_A/rt_CMSIS.c
- Revision:
- 118:4c105b8d7cae
- Parent:
- 92:bc9729798a19
--- a/rtx/TARGET_CORTEX_A/rt_CMSIS.c Mon May 23 10:00:41 2016 +0100 +++ b/rtx/TARGET_CORTEX_A/rt_CMSIS.c Mon May 23 11:00:15 2016 +0100 @@ -905,7 +905,7 @@ if (__exceptional_mode()) return osErrorISR; // Not allowed in ISR ptcb = rt_tid2ptcb(thread_id); // Get TCB pointer - if (ptcb == NULL) return osErrorParameter; + if (ptcb == NULL) return INACTIVE; return ptcb->state; }