[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[microblaze-uclinux] Write to GPIO



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/