打印
[Atmel]

每天跟我读点资料:ASF用户指南(七)

[复制链接]
1013|1
手机看帖
扫描二维码
随时随地手机跟帖
跳转到指定楼层
楼主
ddllxxrr|  楼主 | 2014-7-30 20:15 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式
vr, AVR, rc, AN, ic
6 开始使用ASF和GNU makefile
6.1 安装

    1.在http://www.atmel.com/asf下载Atmel ASF 独立ZIP文件
    2.解压ASF独立文件在你的硬盘上。
    3.安装AVR Studio 作为编译和写程工具
    4.
      软件框架构建系统假设您已经构建机器上安装一些基本的软件工具。这些工具很容易安装在大多数现代操作系统。在Microsoft®Windows系统上安装这些软件应用WinAVR包8位AVR(http://winavr.sourceforge.net/)和Atmel AVR GNU工具链为8位和32位用户(http://www.atmel.com/dyn/products/tools_card.asp?tool_id=4118),在Linux®系统通常可以使用发行版的包系统。软件必须安装软件的框架是有用的:
• make, sed, grep, sort, tac, bc, etc., often referred to as build essentials
• sh – command interpreter (shell)
6.2头文件更新
      8位AVR用户建议更新工具链头文件,描述如何做到这一点的位于readme。txt文件xmega / utils / header_files /目录下。
Atmel AVR UC3用户,建议更新IAR头文件,描述如何做到这一点的位于readme。txt文件avr32 / utils / header_files /目录下。        
6.3导航ASF独立的档案
顶级文件夹组织遵循:

• The avr32/ folder contains software modules (source code and projects) dedicated to AVR UC3 devices
• The mega/ folder contains software modules (source code and projects) dedicated to Atmel megaAVR devices
• The xmega/ folder contains software modules (source code and projects) dedicated to Atmel AVR XMEGA devices
• The common/ folder contains software modules (source code and projects) shared by all Atmel AVR devices
• The thirdparty/ folder contains software modules (source code and projects) from thirdparty providers for all AVR devices
The thirdparty/ folder is organized by thirdparty software module (that is, one folder per thirdparty software module).
The avr32/, xmega/ and common/ folders are organized as follow:
• The drivers/ folder contains low-level software drivers for AVR on-chip resources (for example, cpu, usart, adc drivers)
• The boards/ folder contains board-specific source code files
• The utils/ folder contains files that are used by all other modules: it holds several linker script files, IAR & GCC pre-compiled libraries of some Atmel ASF modules, and C/C++ utility files with general usage defines, macros and functions
• The services/ folder contain application-oriented pieces of software that are not specific to boards or chips (for example, FAT, TCP/IP stack, OS, JPEG decoder). For the common/ top folder, the services/ folder also contains chip-specific code
• The components/ folder offers, for each supported hardware component, a software interface to interact with the component (for example, memories like SDRAM, SD card, or display)
• The applications/ folder contains hefty examples of applications using services and drivers
6.4 开始ASF例子
Using an example of usage of the Atmel AVR UC3 GPIO driver module as an example, the GCC projects are located under:
• avr32/drivers/gpio/peripheral_bus_example/at32uc3a0512_evk1000/gcc/ for an Atmel EVK1100 board
• avr32/drivers/gpio/peripheral_bus_example/at32uc3a0512_evk1105/gcc/ for an Atmel EVK1105 board
• avr32/drivers/gpio/peripheral_bus_example/at32uc3b0256_evk1101/gcc/ for an Atmel EVK1101 board
• avr32/drivers/gpio/peripheral_bus_example/at32uc3a3256_evk1104/gcc/ for an Atmel EVK1104 board
• avr32/drivers/gpio/peripheral_bus_example/at32uc3l064_stk600-rcuc3l0/gcc/ for an Atmel STK600-RCUC3L0 setup
• avr32/drivers/gpio/peripheral_bus_example/at32uc3c0512c_uc3c_ek/gcc/ for an Atmel AT32UC3C-EK board
• avr32/drivers/gpio/peripheral_bus_example/at32uc3l064_uc3l_ek/gcc/ for an Atmel AT32UC3L-EK board
Each gcc/ folder contains a GCC project with:
• a makefile
• a project configuration file config.mk

相关帖子

沙发
茫茫大士| | 2014-7-31 09:33 | 只看该作者
来学习一下

使用特权

评论回复
发新帖 我要提问
您需要登录后才可以回帖 登录 | 注册

本版积分规则

个人签名:http://shop34182318.taobao.com/ http://shop562064536.taobao.com

2398

主题

6955

帖子

67

粉丝