[Michael Becker] has been utilizing FreeRTOS for about seven years. He chose to begin adding some features as well as has a extremely fascinating C++ class wrapper for the OS available.
Real Time operating Systems (RTOS) add performance for single-thread microcontrollers to run several programs at the exact same time without endangering the firmware developer’s sanity. This job adds C++ to the rest of the FreeRTOS benefits. We understand that people have strong feelings one method or the other about utilizing C++ in embedded systems. However, as the 24 demo jobs illustrate, it is possible.
One good thing about the library is that it is thoroughly documented. A big number of examples don’t hurt either. The library is clean with just under 30 classes. It seems to have resisted the pattern of having classes for everything. You understand the type of library we mean. To produce an Integer object, just develop a configuration item to pass to the class factory generator which…. This library doesn’t entertain any type of of that. It has easy abstractions around threads as well as timers, queues, as well as mutexes.
One thing we did discover a bit unexpected was the lack of a “base application.” A typical function of C++ libraries is to have a fundamental application item that you specialize to produce your application. It appears like the wrappers, still need you to utilize a quite standard-looking primary function as well as offer some basic callbacks as well as things. This might quickly be put in a class. Of course, the library is young, so possibly this will be something brought out in a future release.
FreeRTOS is extremely flexible as well as runs on a big number of processors as well as boards. It is likewise relatively simple to port to new hardware. It can likewise coexist with a great deal of middleware like Mongoose OS, the STM32 HAL library, as well as much more.