Hello,
In my program I use gpio interrupts. In the ISR I disable the interrupt and send a signal to a freertos task. The task do some work and then enable the interrupt again. If in the meantime where the interrupt was disabled an gpio interrupt has occurred the ISR will be called immediately. But I don't want this. I would clear the "gpio interrupt has occured" flag manually, so that after enabling the interrupt again only an interrupt after that point in time will trigger the ISR. In the end I would ignore all interrupts that had ocurred between gpio_intr_disable and gpio_intr_enable.
Is it possible to clear the interrupt occurred flag manually?
Thanks in advance.
Clearing the interrupt occurred flag before gpio_intr_enable
Re: Clearing the interrupt occurred flag before gpio_intr_enable
Thanks for your support! That's working!
Re: Clearing the interrupt occurred flag before gpio_intr_enable
I think the code is changed since 2017 (in the 365 and 372 lines there are only curly brackets). Is possible to have the function that clear the flag? Is the gpio_hal_clear_intr_status()? And how I should use it?WiFive wrote: ↑Mon May 08, 2017 12:47 amhttps://github.com/espressif/esp-idf/bl ... pio.c#L365
https://github.com/espressif/esp-idf/bl ... pio.c#L372
Who is online
Users browsing this forum: Majestic-12 [Bot] and 103 guests