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]

Non Blocking mode for reads - ECos serial communications


In chapter 12 (Serial driver details) of the eCos Reference Manual
(September 2000) p.117, it is stated that "It is possible to configure
the read call to be blocking (default) or non-blocking. Non-blocking
mode requires both the configuration option
CYGOPT_IO_SERIAL_SUPPORT_NONBLOCKING to be enabled and the specific
device to be set to non-blocking mode for reads (see
cyg_io_set_config)".

1. How is the CYGOPT_IO_SERIAL_SUPPORT_NONBLOCKING option set with the
ECos configuration tool? Is it set by another means?

2. On p. 119-120, it is stated that the function
cyg_io_set_config(handle, key, buf, len) with the key
CYG_IO_SET_CONFIG_SERIAL_READ_BLOCKING will set blocking-mode for read
calls. The buffer type for this function is cyg_uint32 (values 0 or 1).

Once eCos has been configured to allow for non-blocking serial driver
reads, is non-blocking mode set with a call to this function with this
key if the cyg_uint32 buffer is set to 0?

Regards, Peter Blair.


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