Interrupt Priority Levels: Lower Numbers = Higher Prio or vice versa?

Bass Mati
Posts: 5
Joined: Tue Jun 19, 2018 9:42 am
Location: Switzerland

Interrupt Priority Levels: Lower Numbers = Higher Prio or vice versa?

Postby Bass Mati » Tue Jun 19, 2018 4:51 pm

Hi folks,

in the ESP32 Technical Reference Manual p.36, chapter 2.3.2 CPU Interrupt, table 9, is a list of CPU interrupts and their priority level numbers, but I can't find a statement about their precedence. Is level 0 the highest (after NMI), or level 5?

And: Can a higher priority interrupt request interrupt a lower priority interrupt service routine?

Thanks in advance
Bass

ESP_igrr
Posts: 2071
Joined: Tue Dec 01, 2015 8:37 am

Re: Interrupt Priority Levels: Lower Numbers = Higher Prio or vice versa?

Postby ESP_igrr » Tue Jun 19, 2018 11:30 pm

Level 1 is the lowest:
https://docs.espressif.com/projects/esp ... LAG_LEVEL1

Interrupts with higher level can preempt code running at lower interrupt level.

Bass Mati
Posts: 5
Joined: Tue Jun 19, 2018 9:42 am
Location: Switzerland

Re: Interrupt Priority Levels: Lower Numbers = Higher Prio or vice versa?

Postby Bass Mati » Thu Jun 21, 2018 6:18 pm

Thanks!
I haven't looked into the SDK yet, but I thing that is certainly a good idea...

Who is online

Users browsing this forum: Corand and 104 guests