This is the mail archive of the
ecos-discuss@sources.redhat.com
mailing list for the eCos project.
Re: Runtime changing of serial port baud rate
- To: rob dot wj dot jansen at philips dot com
- Subject: Re: [ECOS] Runtime changing of serial port baud rate
- From: Jonathan Larmour <jlarmour at redhat dot com>
- Date: Tue, 22 May 2001 14:00:17 +0100
- Cc: ecos-discuss at sources dot redhat dot com, Jesper Skov <jskov at redhat dot com>
- Organization: Red Hat UK Ltd.
- References: <0056890030122957000002L972*@MHS>
rob.wj.jansen@philips.com wrote:
>
> Stanley,
>
> > Does eCos support runtime changing of serial port baud rate?
> >
> > Thanks
> > Stanley
>
> Yes, but only if you use the serial driver instead of the diagnostics I/O.
> Look at the chapters 11 and 12 in the eCos Reference Manual.
In a small number of cases it's also true for the diagnostic I/O. Gary
Thomas recently added this for sa11x0 diag. You would need to include
<cyg/hal/hal_if.h> and use CYGACC_COMM_IF_CONTROL(). You can see an example
in redboot/current/src/main.c:set_console_baud_rate().
Jesper, I'd be interested in what CYGACC_CALL_IF_SET_SERIAL_BAUD() is for
in the case. Just "legacy" CygMon stuff and should be ignored?
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