Hi

I had already mailed this problem but I have not solved this yet.
I am writing a character driver which gets inputs from two GPIO pins 12
and 13 ( 12 is Data pin and 13 is clock pin ).
I have set these pins as input using the macros defined in sa-1100.h and
Hardware.h.
GPDR = GPDR & ~(GPIO_GPIO(13));
GPDR = GPDR & ~(GPIO_GPIO(12));
I have also set the Falling Edge detection register GFER for detedting a
falling edge.
GFER = GFER | (GPIO_GPIO(13));

** Have I missed out on any initialization for carrying out the following* 

I plan to detect a falling edge using the above GFER Register which has to
set the GEDR register in case a falling edge is detected.
I also plan to monitor the GPLR Register which has to show me the current
level of the pin at any instant.

I am not able to observe any change in the value of the GEDR Register even
though I am able to see a change in the value of level at the Pin.
Also GPLR is not showing any change in value even though the pin levels
are changing.

Thanks in advance.
Ramakrishnan.A


_______________________________________________
http://lists.arm.linux.org.uk/mailman/listinfo/linux-arm
Please visit the above address for information on this list.

Reply via email to