Part Number: TM4C1230H6PM
Tool/software: TI-RTOS
I have a custom board with TM4C1230H6PM and I have connected a GSM modem to UART1 (Tx, Rx, CTS & RTS).
The GSM modem has some commands to which we get response after 1 - 3 seconds. During this time, I want the processor to run different tasks and only process the response once it is received. (non-blocking)
TI RTOS 2.16 is used in this project and currently we use UART_read() function. But this function requires number of bytes to be read and in our case, it varies from every time we send a command.
Ideally, I want the controller to send a command to the modem, go on to process different tasks, and come back again only after the modem responds. I believe that this can be done using CTS & RTS. But I am unable to find any way in which we can integrate CTS/RTS with TI RTOS to achieve my goal.
Am I missing anything here, or the only way to do this is to implement my own UART driver and interrupt with CTS & RTS?
Thanks
Shashank