This is the mail archive of the ecos-discuss@sources.redhat.com mailing list for the eCos project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: 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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]