Question for FreeRtos system variables usage
Dear FreeRtos developers, thank you for this project.
I have two questions.
1.It is safe dynamic allocation pattern under freertos OS API for system handles(pointers to system objects) and depending RAM data for
xQueue, xEventGroups, semaphores memory etc. objects that is used for intertask communication?
I think if the problem is that handles-pointers is not static declared.
I use:
queueHandle = xQueueCreate() and queueHandle pointer is not declared as static/global but is dynamically allocated in some task by heap_4.
2.C++ and C standards mixing is possible and C++ brings benefits, but my decision was C for development.
Is that decision OK or better then C++? or C++ compilation cannot affect application deployed on ARM processor.
Question for FreeRtos system variables usage
Hi Radoslav,
Question 2: about C++ and embedded:
It is very well possible to use FreeRTOS in combination with C++ !
Personally I find C++ easier to read and it gives some more safety, more protection against making stupid mistakes.
There is an implementation of C++ and FreeRTOS: http://www.stf12.org/developers/FreeRTOS_EC.html
I didn’t try it myself, but several people on this list liked it.
FreeRTOS_EC imposed the same limitations as I also do for embedded:
- No use of the Template Library (STL)
- No Run Time Type Information (RTTI)
- No C++ Exception handling (-fno-exceptions)