This is the mail archive of the
ecos-discuss@sources.redhat.com
mailing list for the eCos project.
Serial Port in non-blocking mode
- From: "Gatien Gillon" <ggillon at ulb dot ac dot be>
- To: <ecos-discuss at sources dot redhat dot com>
- Date: Thu, 21 Apr 2005 17:02:09 +0200
- Subject: [ECOS] Serial Port in non-blocking mode
- References: <42663119.306@carallon.com>
I'm trying to make my AT91EB55 board communicate with a PC, when using the
cyg_io_read function the program waits for an input wich is not what i want.
In non blocking mode I keep on getting 0x0's when reading the port even if I
have sended some characters.
Is there a way of reading the serial port and getting what's in the buffer
without blocking the program if it's empty ?
Thanks
--
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss