I’m using UART to communicate with another device, I can write data but I don’t know how to read the data, I’m calling the function read(uart_fd, read_buf, size) after write when it supossed to be a response but it seems the data that I read is wrong.
In the terminal I see:
irq 50, desc: cefcd780, depth: 0, count: 0, unhandled: 0
->handle_irq(): c026f6d4, msm_gpio_irq_handler+0x0/0x150
->irq_data.chip(): c0f4eb98, gic_chip+0x0/0x74
How can I add a handler so when data is ready to be read I can call the function for reading it?
Hope you can help me, thanks!