FreeRTOS predefined macro

Hello, I’m using the FreeRTOS-POSIX lab project as a part of a RPU project on the cortexR5 processor.

I am trying to abstract the operating system in a header file using a macro that determines the operating system, like “_WIN32” or “__linux”. Is there a predefined macro for FreeRTOS?

You could potentially use any of the macros that result in compilation error if they a definition is omitted. Alternatively the guard macro.

1 Like