frtscpp: The FreeRTOS for the C++ enthusiasts

A couple of days ago I released the pre-alpha version of a C++ wrapper classes project called frtscpp.

Here is an excerpt from the file included in the bundle:

frtscpp (pronounced: freertos C++)


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 so all the kernel functionality is available through C++ classes. Note: There is a lot of work to be done; however, anyone can start writing applications using classes.

The wrapper classes are independent from any particular architecture. Examples (so far) are not.


C++ 11 (from GCC) has being used through all this work. Older versions won’t compile. MCUXpresso (from NXP) and the LPC1114 (Cortex-M0) chip has been used so far. This project should work with similar IDEs and chips.

I’m not an expert in C++ 11+, but if you are and you’re willing to, you might let me know how I can improved this project.

Also, you need to know how to link external sources to your own projects.


Some examples are included, all of them (by the time being) are focused on the MCUXpresso IDE and the LPC1114 chip. The idea is to include as many architectures as possible.

Who is this project for

I’m crazy about objects, everything I see are objects. If you don’t like to program with objects, or if you are a C purist, then this project might not be for you.

As stated earlier, there is a lot of work to be done, so you


I’ve used Doxygen for the documentation.

What’s next

  1. To objectify ALL FreeRTOS functionality.
  2. Templetized some functionality so size and performance can be improved.
  3. More examples.

I would like to thank to BitBucket and SourceForge for let me share throug their tools this project with the community.

Clone the repository

Using git on a terminal, type (or copy-and-paste):

git clone

or just download it from:

clicking on Download repository



Introduce tus datos o haz clic en un icono para iniciar sesión:

Logo de

Estás comentando usando tu cuenta de Cerrar sesión /  Cambiar )

Google+ photo

Estás comentando usando tu cuenta de Google+. Cerrar sesión /  Cambiar )

Imagen de Twitter

Estás comentando usando tu cuenta de Twitter. Cerrar sesión /  Cambiar )

Foto de Facebook

Estás comentando usando tu cuenta de Facebook. Cerrar sesión /  Cambiar )


Conectando a %s