I am writing UART receive interrupt routine for ESP32.But I am getting below error
"AttributeError: 'UART' object has no attribute 'irq' "
I have used the below syntax for UART receive interrupt
UART.irq(trigger, priority=trigger=UART.RX_ANY, handler=UART_interrupt_Routine, handler=None, wake=machine.IDLE)
Is this the correct function/method for UART interrupt for ESP 32 board?
If not then what is the syntax and in built function/method for this?
interrupt routine for uart receiver (ESP32)
Re: interrupt routine for uart receiver (ESP32)
There is no irq method for the UART class for the ESP32. UART.irq() is only available for the CC3200 port (WiPy). The ESP32 UART implementation uses IRQ internally and buffers the received data. The buffer size can be set with the rxbuf option.
Re: interrupt routine for uart receiver (ESP32)
Could you tell me, how to set RX buffer and initialize Rx interrupt register in python?