Tool/software: TI-RTOS
Hi
I want to implement uart protocol, with TI-RTOS work as following:
there is gpio that is configured is input interrupt.
Whet uart is closed, when there is an "activity" on this pin, the gpio is closed as gpio,
and reconfigured as uart pin, in callback mode.
In my protocol, the rx frame's length varies, so I don't know how many bytes
I am going to receive, which means I can't use uart_read with length parameter.
The only way I can use it, is by calling uart_read with length of 1
time after time, which make me work with uart as polling mode, and
I don't want to, and also harms performance.
In Addition, I can't call uart_read in uart rx callback.