How can I distinguish which key is pressed in one interrupt handle routine?

creatory <[email protected]>
Newsgroups gmane.linux.ports.arm.general
Message-ID <[email protected]>
I need to write a bare board driver(no operating system) for 4x4 matrix
keyboard.I use the S3C2410A MPU of samsung company.
The hardware circuit description are as following:
					VCC +3.3V
					   |
					Pull-up Resistance
					   |GPG3------------------Key1---------------Key2	
			 |		   |
			 |		   |
GPF1------------------Key3---------------Key4
			 |		   |
			 |		   |
			 |		   |
GPF2----------------------		   |
GPF0----------------------------------------

The port GPG3 and GPF1 has multi-function.I configure them as EINT11 and
EINT1 function.

When the key1 or key2 is pressed,It  trigger the interrupt handle
routine,but how can I distinguish which key is pressed ?

The same problem:
when the key3 or key4 is pressed,It  also trigger the inputer handle
routine,but I don't know how to distinguish which key is pressed.

Any suggestion?

Thank you.


-------------------------------------------------------------------
List admin: http://lists.arm.linux.org.uk/mailman/listinfo/linux-arm
FAQ:        http://www.arm.linux.org.uk/mailinglists/faq.php
Etiquette:  http://www.arm.linux.org.uk/mailinglists/etiquette.php
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.