Flush RX buffer in Uart

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Flush RX buffer in Uart

2,165 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,648 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