Kuba0040
Well-known member
Hello,
I am working on a project using the audio library that has 2 running interrupts in it.
The first one is a IntervalTimer which triggers an interrupt at a fixed rate. The other is a rising pin interrupt (attachInterrupt). I would like to be able to set the priority for these interrups so the CPU time is shared like this:
(Most important, highest CPU priority)
1. Audio library
2. IntervalTimer
3. Pin interrupt
4. Main arduino code (void loop, ect...)
(Least important, lowest CPU priority)
So here are my questions:
How can I set the priority for the IntervalTimer and attachInterrupt?
What priority does the Audio Library and main arduino code run at?
If anybody knows, please let me know. Thanks!
I am working on a project using the audio library that has 2 running interrupts in it.
The first one is a IntervalTimer which triggers an interrupt at a fixed rate. The other is a rising pin interrupt (attachInterrupt). I would like to be able to set the priority for these interrups so the CPU time is shared like this:
(Most important, highest CPU priority)
1. Audio library
2. IntervalTimer
3. Pin interrupt
4. Main arduino code (void loop, ect...)
(Least important, lowest CPU priority)
So here are my questions:
How can I set the priority for the IntervalTimer and attachInterrupt?
What priority does the Audio Library and main arduino code run at?
If anybody knows, please let me know. Thanks!