MINI2440 I/O Interrupt Drivers

Post Reply
peterlin55118
Posts: 3
Joined: Fri Aug 14, 2009 9:58 am

MINI2440 I/O Interrupt Drivers

Post by peterlin55118 » Fri Aug 14, 2009 10:15 am

:roll: I need to write driver codes for my applications
to control the 4-on-board buttons (keys), I am one day
into this MINI2440 stuff, not sure which driver source codes
with the package is responsible for the interrupt of these
buttons (keys).

If you look at MINI2440 document, it says there is a 2440test
program that come with the purchase, and you can test
keys and system (Linux) will responde with interrupt occurred
message. What I want to know is which driver code is doing
this?

Thanks

ekilab
Posts: 22
Joined: Tue Jul 14, 2009 5:50 am
Location: Espoo, Finland

Re: MINI2440 I/O Interrupt Drivers

Post by ekilab » Fri Aug 14, 2009 11:04 am

there are two pieces of software to test key input, you seem to refer to the linux variant:

judging from the c sourcecode buttons_test in somewhere like:
friendlyarm_dvd\linux example code\examples

the buttons are handled by /dev/buttons device driver

/dev is defined in kernel, so i assume that kernel sourcecode should have source for the device driver too.

at another location somewhere like:
friendlyarm_dvd\Mini2440 Self Test code\2440test\src
begin of the code:
/**************************************************************
4*4 Key Scan
**************************************************************/

#include "def.h"
#include "option.h"
#include "2440addr.h"
#include "2440lib.h"
#include "2440slib.h"

/******************************************************************************
1X6 ¾ØÕó¼üÅÌ
Áù¸öÊäÈëÒý½Å£º EINT8 -----( GPG0 )
EINT11 -----( GPG3 )
EINT13-----( GPG5 )
EINT14-----( GPG6 )
EINT15-----( GPG7 )
EINT19-----( GPG11 )

my chinese is so poor, i dont know what the code says about 1x6 key matrix, but here the external interrupts are documented.

not sure if this is of any help, but at least i tried.
Farawaybay lab run by Eki

peterlin55118
Posts: 3
Joined: Fri Aug 14, 2009 9:58 am

Re: MINI2440 I/O Interrupt Drivers

Post by peterlin55118 » Fri Aug 14, 2009 11:54 am

:D This is great to let me start. Thanks a lot.
As for the Translation of 1x6 Chinese, I don't
think the encoding is done correctly so I tried
a few encoding methods, never popped a good
answer, Sorry.

Kulikova
Posts: 3
Joined: Sun Sep 27, 2009 1:29 pm
Location: Украина
Contact:

MINI2440 I/O Interr

Post by Kulikova » Thu Oct 15, 2009 11:41 am

To do so, I think everybody from the NEoshifter Forum should make a suggestion of what kind of mini-game they would like.

I would like something we vehicules, kind of a race or something like that.

Good idea it should be a race.And one where you can go against other players

buserror
Posts: 92
Joined: Thu Jan 22, 2009 12:28 am

Re: MINI2440 I/O Interrupt Drivers

Post by buserror » Sun Oct 18, 2009 11:41 pm

In linux since my 2.6.29 the keys appear as a "keyboard" and have their own /dev/input/ device... check the boot log, and check /sys/devices/platform

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest