This is the mail archive of the
ecos-discuss@sources.redhat.com
mailing list for the eCos project.
RE: polled serial
- To: <jskov at cambridge dot redhat dot com>
- Subject: RE: [ECOS] polled serial
- From: "Andy Simpkins" <Andy dot Simpkins at TardisMobile dot com>
- Date: Fri, 1 Jun 2001 14:39:58 +0100
- Cc: "eCos Disuss" <ecos-discuss at sourceware dot cygnus dot com>
- Reply-To: Andy dot Simpkins at TardisMobile dot com
Jesper,
Looking in both the documentation and the serial tests I am afraid I can not
find any
reference to the non-blocking property.
The tests I am looking at are serial1.c through serial5.c, tty1.c & tty2.c
in packages\io\serial\v1_3_1\tests
The documentation I searched was 'eCos 1.3.1 Documentation'
Can please point me to where I should be looking?
Andy
> -----Original Message-----
> From: jskov@thinktwice.zoftcorp.adsl.dk
> [mailto:jskov@thinktwice.zoftcorp.adsl.dk]On Behalf Of Jesper Skov
> Sent: 01 June 2001 13:06
> To: Andy.Simpkins@TardisMobile.com
> Cc: eCos Disuss
> Subject: Re: [ECOS] polled serial
>
>
> >>>>> "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
>