fread blocks on device data read?

Eric Norum wenorum at lbl.gov
Tue Aug 17 16:00:13 UTC 2010


On Aug 17, 2010, at 8:56 AM, João Rasta wrote:

> You mean setting termios struct and use tcsetattr() to set the parameters? tcsetattr() only accepts the file descriptor ID as an int, not a FILE * pointer which is returned by fopen()..

Right.
In many cases you're better off using the low level open/read/write calls with serial ports anyway since the buffering performed by the stdio routines just gets in the way.

> 
> Anyway it was working with the uart in polling mode so it should work also in interrupt mode without changing any RTEMS parameter right?

I don't know enough about the implementation of the serial port driver to answer this.

-- 
Eric Norum
wenorum at lbl.gov





More information about the users mailing list