Page 1 of 1

ESP32 UART Interrupts with v4.4

Posted: Tue May 24, 2022 9:11 pm
by brownduino
What is the right way to use interrupts with ESP-IDF v4.4 now that the uart_isr_register() and uart_isr_free() calls have been removed?

The examples suggest using the event queue using xQueueReceive() but that doesn't technically make it an interrupt. The driver for the UART uses the interrupt for the UART and since there are no API calls to clear the default interrupt, I don't see a way to add my own. What is the right way to use interrupts for UART going forward? Do I have to stick to event queues and create a separate task to monitor interrupt flags?

Any help would be highly appreciated.