From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jonathan Larmour To: "Natarajan, Mekala (CTS)" Cc: "'ecos-discuss@sources.redhat.com'" Subject: Re: [ECOS] Reg::input from keyboard Date: Mon, 23 Apr 2001 09:36:00 -0000 Message-id: <3AE45A13.E2C4C511@redhat.com> References: X-SW-Source: 2001-04/msg00313.html "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 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