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
> Discuss-gnuradio@gnu.org
> https://lists.gnu.org/mailman/listinfo/discuss-gnuradio

_______________________________________________
Discuss-gnuradio mailing list
Discuss-gnuradio@gnu.org
https://lists.gnu.org/mailman/listinfo/discuss-gnuradio

Reply via email to