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.

Files at this revision

API Documentation at this revision

Comitter:
mbed_official
Date:
Mon May 23 11:00:15 2016 +0100
Parent:
116:0788b1a76461
Child:
118:6635230e06ba
Commit message:
Synchronized with git revision 821c492eb84a24748de5c05c17f7bd9380ca28ff

Full URL: https://github.com/mbedmicro/mbed/commit/821c492eb84a24748de5c05c17f7bd9380ca28ff/

Changed in this revision

rtx/TARGET_CORTEX_A/rt_CMSIS.c Show annotated file Show diff for this revision Revisions of this file
rtx/TARGET_CORTEX_M/rt_CMSIS.c Show annotated file Show diff for this revision Revisions of this file
--- 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;
 }
--- a/rtx/TARGET_CORTEX_M/rt_CMSIS.c	Mon May 23 10:00:41 2016 +0100
+++ b/rtx/TARGET_CORTEX_M/rt_CMSIS.c	Mon May 23 11:00:15 2016 +0100
@@ -842,7 +842,7 @@
   if (__get_IPSR() != 0U) 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;
 }