Uart Free buffer

Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
Anonymous
Not applicable

Hi everybody!

I have a question about the uart reception buffer.

I want to know how to free the uart buffer?

Currently to do that I only read all values on the buffer but actually I'm not sure if the buffer is clean.


Thanks for the help

0 Likes
2 Replies
SeyhanA_31
Employee
Employee
250 replies posted 100 replies posted 50 replies posted

Hi,

Are you referring to ring buffer? If so, you can simple call ring_buffer_init(...) or simple assign head to tail.

-Seyhan

Thanks,

Seyhan

0 Likes
Anonymous
Not applicable

Hi,

Thanks Seyhan for the response. Yes I was talking about the ring buffer.!

But the point I would know is about freeing the buffer just be reading it's values 

Thanks,

0 Likes