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
neg_ion13
PostPosted: Aug 03, 2012 - 05:18 PM
Rookie


Joined: Jun 08, 2006
Posts: 24


Hello,

I just started using the AVR32 UC3 with GNU toolchain, AVR studio.Do i have to write my own peripheral lib functions or are some provided as with the 8 bit libc? I can't seem to find them. If they are available where can I find the lib manual?

Thanks.
 
 View user's profile Send private message  
Reply with quote Back to top
mikech
PostPosted: Aug 04, 2012 - 01:32 AM
Hangaround


Joined: Aug 19, 2003
Posts: 403
Location: Australia

Peripheral libraries for what devices ?

Look in the ASF under avr32\components and common\components
 
 View user's profile Send private message  
Reply with quote Back to top
kblomqvist
PostPosted: Aug 04, 2012 - 10:01 PM
Hangaround


Joined: Dec 11, 2011
Posts: 200
Location: Finland

For UC3A1 there is Aery32 Framework. However, be aware that it is still young and not as complete as ASF.
 
 View user's profile Send private message  
Reply with quote Back to top
neg_ion13
PostPosted: Aug 06, 2012 - 06:11 PM
Rookie


Joined: Jun 08, 2006
Posts: 24


Thank you for both of your replies.

I am using the UC3A0512. From what I can see so far the .h files have register names and/or structures. I have to write the functions to set the register thereby setting up the peripherals my self. I don't see any function prototypes in the .h files that do this. gpio_200.h for example.
 
 View user's profile Send private message  
Reply with quote Back to top
sambrown
PostPosted: Aug 06, 2012 - 06:56 PM
Hangaround


Joined: May 24, 2011
Posts: 263
Location: Berlin

this is true for the toolchain headers

check out the http://asf.atmel.com/docs/latest/

and

http://www.atmel.com/tools/AVRSOFTWAREFRAMEWORK.aspx

asf offers ready to use drivers (that use the toolchain headers)
for almost every peripheral on your chip.
refer to EVK1105 example projects. this eval board uses exactly your chip

-sb
 
 View user's profile Send private message  
Reply with quote Back to top
mikech
PostPosted: Aug 06, 2012 - 10:29 PM
Hangaround


Joined: Aug 19, 2003
Posts: 403
Location: Australia

Ahh... I misunderstood 'peripheral' to mean an external device.

ASF avr32\drivers has all the source for the internal peripherals.

Are you using Studio 6 ?
If yes, use the ASF Wizard to add drivers for timers/usarts/gpio/etc.
 
 View user's profile Send private message  
Reply with quote Back to top
neg_ion13
PostPosted: Aug 07, 2012 - 05:35 PM
Rookie


Joined: Jun 08, 2006
Posts: 24


You are right! Thanks a lot guys. I am using AVR Studio 5.1.

I guess the framework had to be downloaded separately.

I was afraid I had a lot of work ahead to start developing.

thanks again.
 
 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