I have an application developed in PlatformIO that is developed in the “superjloop” style (i.e. an infinite loop, processing inputs as they’re available).
For more flexibility, I’d like to modify this to use an RTOS, where I can have separate threads, be able to set ahead priorities where needed, have some type of signaling/semaphore between threads, and have a mutex for protection.
What options do I have with PlatformIO? I’ve used FreeRTOS & some other older RTOSes before, but haven’t yet found anything here that is similar. A full RTOS like FreeRTOS is prob. not needed, just the features in the paragraph above.
Thanks for the response. Current board is the Teensy 3.2, but we may be flexible in using a different CPU if it offers much better support for the libs we want.
That looks pretty lightweight. What is the mechanism in that package for inter-thread signaling (e.g. one thread has some data ready, and wants to wake up another thread to read it)?