Jean Labrosse
DIIDevHeads IoT Integration Server
•Created by youcef_ali on 8/6/2024 in #middleware-and-os
How to Implement a 6-Hour Delay in FreeRTOS Task?
Why the loop? Assuming a 32-bit int, why not (6 * HOUR_TICKS)??
That being said, a 6 Hour delay might not be the best use for a task! … but if you do use a task, i assume it’s a very low priority one (i.e.) just higher than the idle task.
I would prefer having a way to check that the task is still running, right now, it it’s not, you have to wait 6 hours or more to find out.
6 replies