Forum Menu




 


Log in Problems?
New User? Sign Up!
AVR Freaks Forum Index

Post new topic   Reply to topic
View previous topic Printable version Log in to check your private messages View next topic
Author Message
olingw
PostPosted: Jul 20, 2011 - 05:05 PM
Newbie


Joined: Jun 08, 2011
Posts: 7


Hello,
I use the NGW100 and the buildroot verion 3.0.0 from Atmel.
Now I want to write a C-Programm to controll the GPIO-Pins.

I use the AVR Studio and did the following steps before I started with the programming.

Open AVR-Studio
New --> AVR C Project --> Target device (AT32AP7000); Project type (AVR32 Linux Executable) --> Project name (TEST) --> Finish

Then I create a c-File named Test.c

I have read the documentation "AVR32408: AVR32 AP7 Linux GPIO driver". On page 6 is the reference to include "gpio.h". Path "include/asm/gpio.h". I've searched my system after gpio.h and more than 600 files found. Not in this path specified.

The files have all other sizes and different content.
Does anyone know where I can find the correct file???
Do I need to provide more specific header files. E.g. at32ap7000.h?

Does anyone know a simple manual to program the NGW100 with AVR Studio?

I want a port to switch on / off and query its status.
And I want to use the SPI Interface.

Thank, for your help!
 
 View user's profile Send private message  
Reply with quote Back to top
nedwed
PostPosted: Jul 22, 2011 - 06:16 AM
Newbie


Joined: Feb 23, 2009
Posts: 16
Location: Poland

Use the gpio.h in your buildroot, for example:

/Your/Buildroot/Path/project_build_avr32/atngw100/linux-2.6.27.6/arch/avr32/include/asm
 
 View user's profile Send private message  
Reply with quote Back to top
hce
PostPosted: Jul 22, 2011 - 08:43 AM
Raving lunatic


Joined: Jan 07, 2003
Posts: 4580
Location: Oslo, Norway

The GPIO interface in the kernel is completely changed now, look at the sysfs GPIO interface; http://lwn.net/Articles/280187/
 
 View user's profile Send private message  
Reply with quote Back to top
Display posts from previous:     
Jump to:  
All times are GMT + 1 Hour
Post new topic   Reply to topic
View previous topic Printable version Log in to check your private messages View next topic
Powered by PNphpBB2 © 2003-2006 The PNphpBB Group
Credits