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: Reg::input from keyboard


"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


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