Skip to content

Commit

Permalink
Add guard condition using the FreeRTOS configUSE_TICKLESS_IDLE flag a…
Browse files Browse the repository at this point in the history
…round the stepTick function
  • Loading branch information
antoinh authored Sep 16, 2024
1 parent 772c42e commit 4818d80
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions FreeRTOS-Cpp/include/FreeRTOS/Kernel.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -352,6 +352,7 @@ inline void suspendAll() { vTaskSuspendAll(); }
*/
inline bool resumeAll() { return (xTaskResumeAll() == pdTRUE); }

#if configUSE_TICKLESS_IDLE
/**
* Kernel.hpp
*
Expand All @@ -372,6 +373,7 @@ inline bool resumeAll() { return (xTaskResumeAll() == pdTRUE); }
inline void stepTick(const TickType_t ticksToJump) {
vTaskStepTick(ticksToJump);
}
#endif

/**
* Kernel.hpp
Expand Down

0 comments on commit 4818d80

Please sign in to comment.