Part Number: AM2434
Hi,
I'm trying to enable a UART interrupt when data is received in the FIFO.
The use case is that my CPU should stop and wait for interrupt, and the only source of interrupt I need is to receive data via the UART. Once the data is in the FIFO, the CPU should be notified and it should receive the data from the FIFO and start processing.
I found an API in the SDK to do that which is: "UART_intrEnable", and I gave it this flag "UART_INTR_RHR_CTI". but I don't know how to set a specific ISR or a Callback to that. The steps I did for the whole process :
- Initialize a MAIN-UART in Polling Mode.
- Call the following Function: UART_intrEnable(uart_baseAddr, UART_INTR_RHR_CTI);
That's it for now, I cannot find the proper next thing to do to assign a function as an ISR for that event.
I also found that the interrupts numbers available are just for the peripherals, like "CSLR_R5FSS0_CORE0_INTR_UART0_USART_IRQ_0". So, I'm not sure if I really understand how to handle the interrupts on the board. So, can you provide me some guidance on how to enable an interrupt for such event ?
This is the function I found:
Thank you in advance