ESP32 UART Interrupts with v4.4

brownduino
Posts: 2
Joined: Tue May 24, 2022 10:46 am

ESP32 UART Interrupts with v4.4

Postby brownduino » Tue May 24, 2022 9:11 pm

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.

Who is online

Users browsing this forum: Bing [Bot], ericchile and 110 guests