frtscpp (pronounced: freertos C++)
Introduction
The aim of this project is to objectify the well know kernel FreeRTOS.
There are a number of reasons for doing so:
1 C++ 11+ rocks!
2 C++ is safer than C.
3 FreeRTOS is crying out for being objectified!
Points 1 and 2 are self-explanatory; point 3 isn't. For a non trivial applications based on FreeRTOS you end up with dozens of state variables, most of them in the global space distributed everywhere. Besides that, all these state variables are used exclusively for the kernel functions. So, data + operations on that data = ADT (abstract data type). In OOL and OOP an ADT is a class. Is this explanation enough for objectifying the kernel? I hope so!
There's a lema a like to follow: "If there are state variables that must be kept along the program's life, then they are excellent candidates for classes."
I haven't touched the kernel internals, that's insane! Instead, I've created a C++ wrapper classes
Downloads:
0 This Week