Interrupt handling triggered by GPIO-input on 405EP?

Martin Egholm Nielsen martin at egholm-nielsen.dk
Wed May 19 00:55:42 EST 2004


Hi Andriy,

>> I've done some initial coding with the ibmgpio driver with my
>> PPC405EP (PPChamelon) board, and inspired by the
>> "gpio_test.c"-application, I've succeeded in turning on some
>> attached LEDs on some of the ports
> can you please share code for manipulating LEDs on PPChameleon? I'm
> using the same board and it would be fine to have such possibility.
I've attached my source-file for turning on LEDs (indirectly) connected
to GPIO-pins 11,13 and 15 on the PPChamelon board.
First of all I created the /dev/gpio device by the command:

mknod /dev/gpio c 10 185

and then you can open and close the pins as you like. :o)

// Martin
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: gpio_test.c
Url: http://ozlabs.org/pipermail/linuxppc-embedded/attachments/20040518/5d0cb2f6/attachment.txt 


More information about the Linuxppc-embedded mailing list