| Author |
Message |
|
|
Posted: Aug 03, 2012 - 05:18 PM |
|

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. |
|
|
| |
|
|
|
|
|
Posted: Aug 04, 2012 - 01:32 AM |
|

Joined: Aug 19, 2003
Posts: 403
Location: Australia
|
|
Peripheral libraries for what devices ?
Look in the ASF under avr32\components and common\components |
|
|
| |
|
|
|
|
|
Posted: Aug 04, 2012 - 10:01 PM |
|

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. |
|
|
| |
|
|
|
|
|
Posted: Aug 06, 2012 - 06:11 PM |
|

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. |
|
|
| |
|
|
|
|
|
Posted: Aug 06, 2012 - 06:56 PM |
|

Joined: May 24, 2011
Posts: 263
Location: Berlin
|
|
|
|
|
|
|
Posted: Aug 06, 2012 - 10:29 PM |
|

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. |
|
|
| |
|
|
|
|
|
Posted: Aug 07, 2012 - 05:35 PM |
|

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