Flush RX buffer in Uart

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Posting new questions will be temporarily unavailable from Dec 21 to Jan 5 due to a scheduled community upgrade.

Flush RX buffer in Uart

2,208 Views
netra
Contributor III

Can any one give me any api to flush receive buffer of uart using mqx3.5?\

Please do reply

Thanks in advance,

Nisha

Labels (1)
0 Kudos
Reply
1 Reply

1,691 Views
chandrasekarkan
Contributor III

Hi

fflush( <file_descriptor> ); and don't forget memset((void*)your_local_receive_buffer, 0, sizeof(your_local_receive_buffer));

0 Kudos
Reply