Here is the trick I needed:
http://www.itee.uq.edu.au/~listarch/microblaze-uclinux/archive/2005/11/msg00237.html
I guess it is still up in the air on how to handle this longer term.
Paul
Quoting Dag Mattis Pettersen <dagmatti@xxxxxxxxxxxxxxxxxx>:
Hi all,
hope you guys are not yet tired from my newbie questions. :-)
I'm trying to use the GPIO to read the buttons and set the LEDs on my
ml401 card.
I added
ifdef CONFIG_XILINX_GPIO
DEVICES += \
gpio,c,10,185
to my vendors/Xilinx/uclinux-auto/Makefile, and I got the /dev/gpio
device. Now I can compile a simple program and read the buttons
(IBMGPIO_IN), but for some reason I cannot set the LEDs with IBMGPIO_OUT.
Is there some trick I have to do to make this work?
Thanks in advance!
--
Sincerely Mattis
___________________________
microblaze-uclinux mailing list
microblaze-uclinux@xxxxxxxxxxxxxx
Project Home Page : http://www.itee.uq.edu.au/~jwilliams/mblaze-uclinux
Mailing List Archive : http://www.itee.uq.edu.au/~listarch/microblaze-uclinux/