Skip to content

[OOP] Task await until IRQ is processed, how to pass data IRQ to task #162

Answered by arkhipenko
hitech95 asked this question in Q&A
Discussion options

You must be logged in to vote

Hi @hitech95
From the scheduling perspective (meaning, scheduling the task to run ASAP) you are doing everything right - scheduling task to restart during interrupt. Depending where in the execution chain taskIRQ is, it might not be the very next task to be activated. You might want to assign those to a scheduler of a higher priority, then they will be evaluated for invocation more frequently.
Example here: https://github.com/arkhipenko/TaskScheduler/blob/master/examples/Scheduler_example11_Priority/Scheduler_example11_Priority.ino

From the passing a value to the task perspective, you need to use LTS (local thread storage)
Example here: https://github.com/arkhipenko/TaskScheduler/blob/mas…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by hitech95
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants