This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

how to priority of interrupts

Hi

In my case i have both 3 gpio interrupts and 4 rtc1 interrupts and have some timer 0 and 1 interrupts

also. how to set priority for all these interrupts in both while soft device enabled and disabled.

i want to make gpio interrupts as highest priority.

Regards Balaji

Parents
  • I'm not quite sure I understand what you mean. If you have two interrupts that both will cause GPIOTE_IRQHandler to run, one will not interrupt the other, and as far as I've seen, GPIOTE_IRQHandler will be called until all events are cleared.

    You can not explicitly set the priority of individual events handled in the same IRQ handler. If your interrupt handler checks all events, it may clear all events on the first run, and if so, the sequence will be determined by the sequence in which you check the events in your IRQ handler.

    If I don't understand you correctly, could you please edit your question and supply a code example showing the problem you're having?

Reply
  • I'm not quite sure I understand what you mean. If you have two interrupts that both will cause GPIOTE_IRQHandler to run, one will not interrupt the other, and as far as I've seen, GPIOTE_IRQHandler will be called until all events are cleared.

    You can not explicitly set the priority of individual events handled in the same IRQ handler. If your interrupt handler checks all events, it may clear all events on the first run, and if so, the sequence will be determined by the sequence in which you check the events in your IRQ handler.

    If I don't understand you correctly, could you please edit your question and supply a code example showing the problem you're having?

Children
No Data
Related