# Finalizing a lustre + FreeRTOS application This example is similar to the one of 4-arduino-lustre, but, instead of implementing a periodic loop with Arduino support, we use a state-of-the-art real-time OS. # Folder contents - control.lus (given): implements the expected functionality - control_loop.cpp (to be completed): the setup and loop implementation - control_ext.h (given): the C definition of lustre basic types, suitable for arduino - Makefile (given): extended to handle the compilation of lustre and FreeRTOS code # Completing the control_loop: Lustre and BatCar 'glue' - similar to what was done for 4-arduino-lustre # Completing the control_loop: FreeRTOS 'glue' - FreeRTOS is: * a ypical light-weight RTOS * a collection of OS features that the user can 'pick', compile and link with the functional code - A generic Makefile is provided to ease compilation and linking - To complete the code, you must take a look at the official FreeRTOS API: [https://www.freertos.org/] Kernel/API reference - DON'T TRY TO READ THE WHOLE DOC, FOCUS ON THESE FEATURES: * For creating and lanching the task: - xTaskCreate - vTaskStartScheduler * For implementating the periodic behaviour: - xTaskGetTickCount: initialize a system tick counter - vTaskDelayUntil: wait (i.e. sleep) for a delay