|
A quick question about the GPIOs.
Is there a list that can tell us the mapping between /dev/gpioX and the
hardware on the board? From your example code, gpio1 is the switches and gpio0
is the leds. What about gpio2, gpio3, etc? The reason I ask is that we are
trying to work with the SPI interface on the starter board and it is unclear if
uclinux has a gpio driver built in that drives it. Thanks again for any help. Brian Estrada From:
owner-microblaze-uclinux@xxxxxxxxxxxxxx
[mailto:owner-microblaze-uclinux@xxxxxxxxxxxxxx] On Behalf Of Torrego
Raul Hi, Here you have some code to interact with the board. UART.txt have some functions to work with a second UART if you have
one (the first UART works with printf(), getc()...) GPIO.c is a full app that reads from the switches and ligths the
corresponding LEDs. You can also take a look at the apps that come with petalinux like
gpio-test. On the other hand, if you want to interact with hardware inside the
FPGA designed by yourself, you can use the functions/macros that the EDK
creates after using the wizard "Create or Import
Peripheral" in microblaze_0/include/youripname.h. Tell me if you have any problem. Raúl. De:
owner-microblaze-uclinux@xxxxxxxxxxxxxx
[mailto:owner-microblaze-uclinux@xxxxxxxxxxxxxx] En nombre de Brian
Estrada Hello, I’m currently a Computer Engineering student working
on project using the Spartan 3E Rev D Starter Board and Petalinux. I currently
have the board running uclinux and have been very satisfied with it.
Unfortunately, my professor wants me to take it a step further. He wants me to
somehow integrate uclinux with some of the hardware aspects of the board
itself. He gave me an example such as running a user app called “lights”
through the uclinux terminal which will then blink the leds of the Spartan 3e
starter board. I’ve read through the petalinux guides and know that I can write
apps for uclinux that run exclusively inside of it, but I haven’t seen any
programs that can be run in uclinux that can interact with the board itself,
like with the leds or lcd display. Has anyone had any experience with this kind
of program? Thanks for any help you can give me. Brian Estrada |