Community
cancel
Showing results for 
Search instead for 
Did you mean: 
mgolu
New Contributor II
1,237 Views

How to clear UART buffer before reading ?

Jump to solution

As in subject I just wondering if there is possibility to clear UART buffer before we will start to use it (read from it)?

1 Solution
Pedro_M_Intel
Employee
83 Views

Hello mark_kram,

I believe what you would like to do is flush of the buffer, right? If that's the case, then, as you can see in the D2000 documentation (found in C:\IntelSWTools\ISSM_2016.0.027\firmware\bsp\1.0\doc\html) specifically in group__groupUART.html, there's no flush function.

However, you could implement your own routine which changes all of the ports signal (including control signals) to a default value.

-Peter.

View solution in original post

2 Replies
Pedro_M_Intel
Employee
84 Views

Hello mark_kram,

I believe what you would like to do is flush of the buffer, right? If that's the case, then, as you can see in the D2000 documentation (found in C:\IntelSWTools\ISSM_2016.0.027\firmware\bsp\1.0\doc\html) specifically in group__groupUART.html, there's no flush function.

However, you could implement your own routine which changes all of the ports signal (including control signals) to a default value.

-Peter.

View solution in original post

mgolu
New Contributor II
83 Views

Hi Intel_Peter,

thank you for your respone. Now everything is clear.

Reply