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: Serial Console application - iq80310


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


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