ATmega 32 , Waking a task from an ISR
I’d like to konw how to keep a task idle and wake it from an ISR , for a specific time ,then return idle
Thanks
ATmega 32 , Waking a task from an ISR
There are lots of different ways – queues, semaphores, event groups,
stream buffers, message buffers can all be used to wake a task from an
interrupt. As a starting point for you I would recommend looking at
task notifications – as that is one of the most efficient ways. The
first link gives an overview of task notifications, the second has a
code snippet showing interrupt to task notifications.
https://www.freertos.org/RTOS-task-notifications.html
https://www.freertos.org/RTOSTaskNotificationAsCounting_Semaphore.html