Hello,
I have a small task in FreeRTOS that functions as a Finite State Machine (FSM). When it reaches the “DONE” state, the task suspends itself using vTaskSuspend()
, and it is resumed by another task using vTaskResume()
when needed.
My Current Setup:
- FSM runs until the “DONE” state, where it calls
vTaskSuspend()
. - Another task triggers it back using
vTaskResume()
.
This setup works fine, but I’m wondering if there are more efficient alternatives to vTaskSuspend()
and vTaskResume()
for such small tasks, without restructuring the FSM or using blocking loops. Would using task notifications or another mechanism be more optimal?
Any advice or suggestions would be appreciated!