[ECOS] polled serial

Jesper Skov jskov@cambridge.redhat.com
Fri Jun 1 05:06:00 GMT 2001


>>>>> "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



More information about the Ecos-discuss mailing list