Tool/software: TI-RTOS
Hello!
I am using TI-RTOS on MSP430F5438A. I want to make a UART communication between my MSP and another device.
I have a task that writes and reads from UART a message. After the UART_write(), the device return me another message. The communication consist of messages that are sent from my MSP to the device and immediately the device responds. For every message I send to the device I need to wait a period of time for the next message to be sent from MSP to device.
In this case i don't have a problem beacuse using the TI-RTOS driver I just need to call UART_write() and after that UART_read(). My problem is that the device sends some messages at a random time period. I don't want to stay in a loop where i call UART_read() to catch the buffers that came at a random period of time. Is there any way to make an interrupt when i have something on UART(rising edge) and read the messages?
