This is the mail archive of the
ecos-discuss@sources.redhat.com
mailing list for the eCos project.
Re: polled serial
- To: Andy dot Simpkins at TardisMobile dot com
- Subject: Re: [ECOS] polled serial
- From: Jesper Skov <jskov at cambridge dot redhat dot com>
- Date: 01 Jun 2001 14:06:14 +0200
- Cc: "eCos Disuss" <ecos-discuss at sourceware dot cygnus dot com>
- References: <NEBBKCPHAKKLBOKILBONKEIJCCAA.Andy.Simpkins@TardisMobile.com>
>>>>> "Andy" == Andy Simpkins <Andy.Simpkins@TardisMobile.com> writes:
Andy> Hi there, Assuming that I have understood things properly,
Andy> cyg_io_read is a blocking function, i.e. once called it will
Andy> only return when characters have been received from the serial
Andy> port. Is there another function available to either return the
Andy> amount of data currently held in the receive buffer (the eCos
Andy> serial buffer NOT that of the UART) or a non blocking read
Andy> function (i.e. returns NULL if there is nothing currently in the
Andy> serial buffer)?
Set the non-blocking property of the device. See the serial tests for
examples, or consult the documentation...
Jesper