jonenz / FreeRTOS-Cpp

C++17 header-only interface to the FreeRTOS kernel API.
https://jonenz.github.io/FreeRTOS-Cpp
MIT License
46 stars 8 forks source link

configUSE_TICKLESS_IDLE #12

Open antoinh opened 6 days ago

antoinh commented 6 days ago

Add a compilation guard condition around the stepTick function using the configUSE_TICKLESS_IDLE FreeRTOS flag.

Depending on the FreeRTOS config file configuration the vTaskStepTick function is not always defined. Since the stepTick function requires the configUSE_TICKLESS_IDLE to be set to 1 to function as intended it makes sense to add a guard compilation condition to prevent potential compilations issue