Thread (1 message) 1 message, 1 author, 2004-05-18

Re: Interrupt handling triggered by GPIO-input on 405EP?

From: Martin Egholm Nielsen <hidden>
Date: 2004-05-18 14:55:42

Hi Andriy,
quoted
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

Attachments

Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help