Page 1 of 1

Interrupt Priority of General Purpose Timer

Posted: Tue Aug 01, 2023 12:40 pm
by Gabriel_Simmann
Hi all,

i am using the Hardware-Timer of an esp32 via the general purpose timer driver (https://docs.espressif.com/projects/esp ... timer.html) and configure them to raise alarm / interrupts. That is no problem.
Unfortunately the driver doesn't give the option to set the alarm (interrupt) priority of the interrupts as i know it from other mikrocontrollers.

Does someone know how to configure that?
I also worked myself through the technical reference manual (https://www.espressif.com/sites/default ... ual_en.pdf) but couldn't find anything about interrupt priorities for the hw-timer.

Thanks in advance, cheers,
Gabriel

Re: Interrupt Priority of General Purpose Timer

Posted: Tue Aug 01, 2023 9:56 pm
by ESP_igrr
Hi Gabriel, looks like this functionality was available in the older version of the driver (via interrupt allocation flags): ESP_INTR_FLAG_LEVEL1, ESP_INTR_FLAG_LEVEL2, etc.
However the new version of the driver introduced in IDF v5.0 doesn't have a configuration option to specify interrupt priority level. I'll ask the authors of the new driver if this feature can be added there as well!