DISCLAIMER: This example requires CMake and can not be build with Eclipse
FreeRTOS C
This example demonstrates how to integrate a state machine into FreeRTOS. It's based on the C Code Generation example.
FreeRTOS Installation
In order to run the example, FreeRTOS must be cloned. Clone FreeRTOS from https://github.com/FreeRTOS/FreeRTOS
Compile and run the example
Open a terminal and cd to the root of this project, call cmake, make the project and run the binary. Ensure that the state machines code has been generated.
cd "path to your project"
cmake -B build -DCOMPILER=GCC_POSIX -DFREE_RTOS_PATH="path to your cloned FreeRTOS"
./create_freeRTOS
Get this example
The complete project — statechart models, sources and build files — lives in the itemis CREATE examples repository. Inside itemis CREATE for Eclipse you can import it directly with the example wizard.