Page 1 of 1

MINI2440 I/O Interrupt Drivers

Posted: Fri Aug 14, 2009 10:15 am
by peterlin55118
: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

Re: MINI2440 I/O Interrupt Drivers

Posted: Fri Aug 14, 2009 11:04 am
by ekilab
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.

Re: MINI2440 I/O Interrupt Drivers

Posted: Fri Aug 14, 2009 11:54 am
by peterlin55118
: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.

MINI2440 I/O Interr

Posted: Thu Oct 15, 2009 11:41 am
by Kulikova
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

Re: MINI2440 I/O Interrupt Drivers

Posted: Sun Oct 18, 2009 11:41 pm
by buserror
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