From 4818d80cca6a4ca1538ab1ab62c815402aa5f6de Mon Sep 17 00:00:00 2001 From: antoinh Date: Mon, 16 Sep 2024 11:44:55 -0400 Subject: [PATCH] Add guard condition using the FreeRTOS configUSE_TICKLESS_IDLE flag around the stepTick function --- FreeRTOS-Cpp/include/FreeRTOS/Kernel.hpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/FreeRTOS-Cpp/include/FreeRTOS/Kernel.hpp b/FreeRTOS-Cpp/include/FreeRTOS/Kernel.hpp index 0f28646..7cddb29 100644 --- a/FreeRTOS-Cpp/include/FreeRTOS/Kernel.hpp +++ b/FreeRTOS-Cpp/include/FreeRTOS/Kernel.hpp @@ -352,6 +352,7 @@ inline void suspendAll() { vTaskSuspendAll(); } */ inline bool resumeAll() { return (xTaskResumeAll() == pdTRUE); } +#if configUSE_TICKLESS_IDLE /** * Kernel.hpp * @@ -372,6 +373,7 @@ inline bool resumeAll() { return (xTaskResumeAll() == pdTRUE); } inline void stepTick(const TickType_t ticksToJump) { vTaskStepTick(ticksToJump); } +#endif /** * Kernel.hpp