On Tuesday 19 June 2007 09:00:52 Antonio Galea wrote:
> Hello all,
> To check deeper for USB drivers issues, I've reflashed my Fox with a 2.4.31
> kernel (with USB serial debug turned on) and compiled the CP2101 driver as
> a module; it loads without apparent problems:
Fine
> So, I can now start my program: it opens the interface correctly, but hangs
> when reading. Here's the functions I use for driving the UART:
> and my program just hangs on a tty_getc().
read() blocks until there is a byte coming in from the UART.

If the device (driver) supports select() you should use it to setup some 
timeout.

Eberhard




Reply via email to