Hello Dear ,
I used the first link to use overo GPIOs on the E100 to communicate with
the SPARTN3AN FPGA.
I’m doing the following:
1- I chose an empty GPIO input to the FPGA (for example overo_gpio22).
2- I modified the FPGA image so that debug_led1 = over_gpio220
3- I’ll set and clear overo GPIO using the bash shell as I read in the
first link that u recommended.
The problem:
Although the following gpios are free on the FPGA.There are other gpios
valid on the overo. Srictly speaking
The free GPIOs on the overo
$ root@usrp-e1xx:/sys/class/gpio# ls
exportgpio16 gpio168 gpiochip128 gpiochip192 gpiochip64 unexport
gpio15gpio164 gpiochip0 gpiochip160 gpiochip32 gpiochip96
The free gpios at the FPGA found at u1e.v
input overo_gpio0, input overo_gpio14, input overo_gpio21, input
overo_gpio22, // Misc GPIO
input overo_gpio23, input overo_gpio64, input overo_gpio127, // Misc
GPIO
input overo_gpio176, input overo_gpio163, input overo_gpio170, // Misc
GPIO
Is that normal of I did something wrong at the kernel at the overo?
Regards,
S. Yassin
HW Engineer
DLECS
From: Philip B. [email protected]
To: Sameh Y. [email protected]
Cc: “[email protected]” [email protected]
Sent: Saturday, April 28, 2012 2:18 PM
Subject: Re: [Discuss-gnuradio] E100 - Interface between OMAP3 and FPGA
On 04/28/2012 08:07 AM, Sameh Y. wrote:
I tried to compile then I got the error that can’t find GPIO.h.
My question: did I use the correct high level function or I used a “lower level”
that is used to implement the function?
This is the easiest way to toggle gpio’s from userspace.
http://wiki.gumstix.org/index.php?title=GPIO#Accessing_GPIO.27s_from_userland
Also:
http://elinux.org/GPIO
The kernel on the e100 already supports the sysfs entries for gpio’s.
(UHD uses it)
Philip