ISR_SetPrioty() Question

Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
Anonymous
Not applicable

If I have an ongoing interrupt from a button press and I change the priority mid call does it change the priority of the ongoing interrupt or the next time the interrupt is triggered.

0 Likes
1 Solution
3 Replies
Anonymous
Not applicable

Most things will change on the next iteration, but there are exceptions 🙂

0 Likes
HeLi_263931
Level 8
Level 8
100 solutions authored 50 solutions authored 25 solutions authored
0 Likes
Anonymous
Not applicable

According to the document hli linked, the Cortex-M0 doesn't support dynamic interrupt priority changing.

   

Since it seems to be working for you, use at your own peril >:)

   

But, as a note, it is probably working because you are changing the priority inside the interrupt, and thus it automatically disables the interrupt while handling the interrupt, allowing you to change the interrupt level within the interrupt.

0 Likes