RTOS solutions for an M4F controller that implements a cooperative and preemptive RTOS solution with support for semaphores, yielding, sleep, priority scheduling, priority inheritance, and a shell interface.