This is the mail archive of the
ecos-discuss@sources.redhat.com
mailing list for the eCos project.
Re: Serial application
- To: Ho Shui Choy Stanley PS03B NCS <scho at ncs dot com dot sg>
- Subject: Re: [ECOS] Serial application
- From: Jonathan Larmour <jlarmour at redhat dot com>
- Date: Thu, 10 May 2001 03:32:52 +0100
- Cc: "Ecos-Discuss (E-mail)" <ecos-discuss at sources dot redhat dot com>
- Organization: Red Hat UK Ltd.
- References: <19C34CD863B1D4118E2800508BAF663A0112F62B@STONE>
Ho Shui Choy Stanley PS03B NCS wrote:
>
> But with the non blocking option select, the serial device is initialize
> with a blocking value of "true" which is in the serial_init function.
No, the CYGOPT_IO_SERIAL_SUPPORT_NONBLOCKING option means that non-blocking
mode is supported. It doesn't mean it's enabled by default. Instead you
have to use the function cyg_io_set_config() with the key
CYG_IO_SET_CONFIG_READ_BLOCKING (or ...WRITE_BLOCKING) to enable
non-blocking mode.
Jifl
--
Red Hat, Rustat House, Clifton Road, Cambridge, UK. Tel: +44 (1223) 271062
Maybe this world is another planet's Hell -Aldous Huxley || Opinions==mine