This is the mail archive of the
ecos-discuss@sources.redhat.com
mailing list for the eCos project.
Re: Reg::input from keyboard
- To: "Natarajan, Mekala (CTS)" <NMekala at chn dot cognizant dot com>
- Subject: Re: [ECOS] Reg::input from keyboard
- From: Jonathan Larmour <jlarmour at redhat dot com>
- Date: Mon, 23 Apr 2001 17:36:35 +0100
- Cc: "'ecos-discuss at sources dot redhat dot com'" <ecos-discuss at sources dot redhat dot com>
- Organization: Red Hat UK Ltd.
- References: <DDD04F4480FED411AB5D00508BFD7A4417831D@CTSINTDLSXUA>
"Natarajan, Mekala (CTS)" wrote:
>
> Thanks Mr.Jifl.
>
> In i386 pc target i used hal_diag_init() and hal_diag_read() to get input
> from target keyboard.
> MBX starter kit also has a keyboard interface support. If i try to use the
> hal_diag_read() system call it reports unreferenced symbol error. What is
> the option which i need to enable to get input from target keyboard.
Do a
#include <cyg/hal/hal_diag.h>
and then use the macro
HAL_DIAG_READ_CHAR(x)
where x is a char to read into, e.g.
char foo;
HAL_DIAG_READ_CHAR( foo );
I believe this should work.
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