Interrupt Priority of General Purpose Timer

Gabriel_Simmann
Posts: 4
Joined: Thu Jul 20, 2023 7:16 am

Interrupt Priority of General Purpose Timer

Postby Gabriel_Simmann » Tue Aug 01, 2023 12:40 pm

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

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

Re: Interrupt Priority of General Purpose Timer

Postby ESP_igrr » Tue Aug 01, 2023 9:56 pm

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!

Who is online

Users browsing this forum: No registered users and 76 guests