wake-0 / fhvOS

This repository contains an os for the arm cortex a8 in combination with beaglebone.
GNU General Public License v2.0
7 stars 1 forks source link

[UART] [Driver] Bug in read function #26

Closed trylimits closed 9 years ago

trylimits commented 9 years ago

Read function seems to be buggy. One should review and add a precise description about the bug.

trylimits commented 9 years ago

It seems that it can cause problems if chars are read too fast from the FIFO. I added a function which checks if a char is available to read. It works properly now, however, the read function is now blocking until the read buffer is filled completely.

Imo this is perfect for implement the scanf(..) function, however, idk if this still works for the KNX application.