This is the mail archive of the
ecos-discuss@sources.redhat.com
mailing list for the eCos project.
Re: keyboard driver
- To: rajeev50 at lycos dot com
- Subject: Re: [ECOS] keyboard driver
- From: Jonathan Larmour <jlarmour at redhat dot com>
- Date: Tue, 13 Mar 2001 21:24:48 +0000
- Cc: ecos-discuss at sources dot redhat dot com,Rafael Rodrmguez Velilla <rrv at tid dot es>
- Organization: Red Hat UK Ltd.
- References: <BEFLAEPKOABMDAAA@mailcity.com>
Rajeev murthy wrote:
>
> hi,
> i am using ecos on an ARM7 core on a linux host.
> i am supposed to write a keyboard driver for our board.i have gone through the documentation of the io package as to how to write a driver.but the documentation seems to provide details only for a driver talking with UARTS.
> please provide some details as to how i should start.
There's some code for handling a PC keyboard within
hal/i386/pc/current/src/hal_diag.c. You could use that as a starting point.
Note that it's polled only so you'd have to add interrupt support I
imagine, but that shouldn't be difficult.
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