[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Discuss-gnuradio] E100 - Interface between OMAP3 and FPGA
From: |
Philip Balister |
Subject: |
Re: [Discuss-gnuradio] E100 - Interface between OMAP3 and FPGA |
Date: |
Sat, 28 Apr 2012 08:18:09 -0400 |
User-agent: |
Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.24) Gecko/20111108 Fedora/3.1.16-1.fc14 Thunderbird/3.1.16 |
On 04/28/2012 08:07 AM, Sameh Yassin wrote:
> Dear all,
>
> I need to send data from the OMAP3 to the Spartan3an FPGA. As I understand
> ,from the wiki and presentations, there are two ways to communicate namely;
> using setting_reg and GPIO. The second way seems easier so I'll try it
> first.
>
> I intend to set or clear the free GPIOS on the Spartan FPGA such as
> over_gpio_22. I added the following code to the example tx_waveforms.cpp.
>
> static struct gpio gpio_test = { 22, GPIOF_OUT_INIT_LOW,
> "OVERO_GPIO_22" };
> gpio_set_value(22,1);
> //set gpio22 which is connected to pin IO_L30N_0
>
>
> 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
>
>
>
> Regards,
> S. Yassin
>
>
>
> _______________________________________________
> Discuss-gnuradio mailing list
> address@hidden
> https://lists.gnu.org/mailman/listinfo/discuss-gnuradio