Example code displaying how to use and implement the mbed RTOS along with a simple state machine used to capture button presses.

Dependencies:   mbed

Fork of mbed-rtos by mbed official

Auto generated API documentation and code listings for RTOS-LED

Classes

Mail< T, queue_sz > The Mail class allow to control, send, receive, or wait for mail
MemoryPool< T, pool_sz > Define and manage fixed-size memory pools of objects of a given type
Mutex Used to synchronise the execution of threads
Queue< T, queue_sz > The Queue class allow to control, send, receive, or wait for messages
RtosTimer Allow creating and and controlling of timer functions in the system
Semaphore Used to manage and protect access to a set of shared resources
Thread Allow defining, creating, and controlling thread functions in the system

Code

color.cpp [code]
color.h [code]
Mail.h [code]
main.cpp [code]
MemoryPool.h [code]
Mutex.cpp [code]
Mutex.h [code]
Queue.h [code]
rtos.h [code]
RtosTimer.cpp [code]
RtosTimer.h [code]
Semaphore.cpp [code]
Semaphore.h [code]
Thread.cpp [code]
Thread.h [code]