Hi,
I'm trying to add FreeRTOS to my TMS570LS1227 project. Most of my project is in C++. The hw layer created by HALCoGen and FreeRTOS are in C. The plan is to use C++ wrapper functions to call FreeRTOS to keep my project OS agnostic. I've started with xTaskCreate(). I wrap the FreeRTOS includes with an 'extern "C" '. The compilation error I get is...
"path_to_my_project/include/os_portmacro.h", line XXX: error #28: expression must have a constant value
The error(s) occur on the line(s) with the #pragma SWI_ALIAS statements.
I compile the HalCoGen output into a library and there are no issues compiling this. I get the error when I try to compile my cpp wrapping functions that include FreeRTOS.h. I've also tried compiling the library using the FreeRTOS download from sourceforge with similar results.
Any ideas on how to solve this problem? How can I integrate FreeRTOS into a C++ project?
Thanks,
Mike