This is the mail archive of the
ecos-discuss@sources.redhat.com
mailing list for the eCos project.
Re: Serial Console application - iq80310
- To: Shlomi <shlomi at omegaband dot co dot il>
- Subject: Re: [ECOS] Serial Console application - iq80310
- From: Jonathan Larmour <jlarmour at redhat dot com>
- Date: Mon, 22 Oct 2001 16:24:41 +0100
- Cc: ecos-discuss at sources dot redhat dot com
- Organization: Red Hat UK Ltd.
- References: <692B9C808ECE0744AB630DF7D90D934718626D@sbs2000.omegaband.co.il>
Shlomi wrote:
>
> I try to develop a serial console application for the iq80310.
> I use dev/ttydiag.
> Output to the console is fine but input from the console does not work
> properly.
> If interrupts are disabled while performing cyg_io_read then it works
> fine.
> But if the interrupts are enabled it does not work. Input is not read,
> and one in about 10 to 20 keystrokes an unexpected input is character is
> obtained.
The diag channel is probably being used for ctrl-c support. Look at
hal/arm/iq80310/current/src/hal_diag.c:cyg_hal_plf_serial_isr. There's no
(simple) way to pass that to anything polling on the channel. Disabling GDB
ctrl-c support might be sufficient.
> Here is the relevant code.
Consider using the _real_ serial driver for the iq80310 rather than the
diag one.
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