evk1100.h

Go to the documentation of this file.
00001 /* This header file is part of the ATMEL AT32UC3A-SoftwareFramework-1.1.1 Release */
00002 
00003 /*This file is prepared for Doxygen automatic documentation generation.*/
00020 /* Copyright (c) 2007, Atmel Corporation All rights reserved.
00021  *
00022  * Redistribution and use in source and binary forms, with or without
00023  * modification, are permitted provided that the following conditions are met:
00024  *
00025  * 1. Redistributions of source code must retain the above copyright notice,
00026  * this list of conditions and the following disclaimer.
00027  *
00028  * 2. Redistributions in binary form must reproduce the above copyright notice,
00029  * this list of conditions and the following disclaimer in the documentation
00030  * and/or other materials provided with the distribution.
00031  *
00032  * 3. The name of ATMEL may not be used to endorse or promote products derived
00033  * from this software without specific prior written permission.
00034  *
00035  * THIS SOFTWARE IS PROVIDED BY ATMEL ``AS IS'' AND ANY EXPRESS OR IMPLIED
00036  * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
00037  * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE EXPRESSLY AND
00038  * SPECIFICALLY DISCLAIMED. IN NO EVENT SHALL ATMEL BE LIABLE FOR ANY DIRECT,
00039  * INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
00040  * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
00041  * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
00042  * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
00043  * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
00044  * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
00045  */
00046 
00047 
00048 #ifndef _EVK1100_H_
00049 #define _EVK1100_H_
00050 
00051 #include "compiler.h"
00052 
00053 #ifdef __AVR32_ABI_COMPILER__ // Automatically defined when compiling for AVR32, not when assembling.
00054 #  include "led.h"
00055 #endif  // __AVR32_ABI_COMPILER__
00056 
00057 
00060 
00061 
00062 // RCOsc has no custom calibration by default. Set the following definition to
00063 // the appropriate value if a custom RCOsc calibration has been applied to your
00064 // part.
00065 //#define FRCOSC          115200    //!< RCOsc frequency: Hz.
00066 
00067 #define FOSC32          32768     
00068 #define OSC32_STARTUP   3         
00069 
00070 #define FOSC0           12000000  
00071 #define OSC0_STARTUP    3         
00072 
00073 // Osc1 crystal is not mounted by default. Set the following definitions to the
00074 // appropriate values if a custom Osc1 crystal is mounted on your board.
00075 //#define FOSC1           12000000  //!< Osc1 frequency: Hz.
00076 //#define OSC1_STARTUP    3         //!< Osc1 startup time: RCOsc periods.
00077 
00079 
00080 
00083 
00084 
00086 #define SDRAM_PART_HDR  "MT48LC16M16A2TG7E/mt48lc16m16a2tg7e.h"
00087 
00090 #define SDRAM_DBW       16
00091 
00093 
00094 
00097 
00098 
00102 #define USB_ID                      AVR32_USBB_USB_ID_0_0
00103 
00107 #ifdef EVK1100_REVA
00108 #  define USB_VBOF                    AVR32_USBB_USB_VBOF_0_0
00109 #else
00110 #  define USB_VBOF                    AVR32_USBB_USB_VBOF_0_1
00111 #endif
00112 
00114 #ifdef EVK1100_REVA
00115 #  define USB_VBOF_ACTIVE_LEVEL       HIGH
00116 #else
00117 #  define USB_VBOF_ACTIVE_LEVEL       LOW
00118 #endif
00119 
00121 #ifdef EVK1100_REVA
00122 #  define USB_OVERCURRENT_DETECT_PIN  AVR32_PIN_PB18
00123 #else
00124 #  define USB_OVERCURRENT_DETECT_PIN  AVR32_PIN_PX33
00125 #endif
00126 
00128 
00129 
00131 #ifdef EVK1100_REVA
00132 #  define MACB_INTERRUPT_PIN  AVR32_PIN_PX12
00133 #else
00134 #  define MACB_INTERRUPT_PIN  AVR32_PIN_PA24
00135 #endif
00136 
00137 
00139 #define LED_COUNT   8
00140 
00143 
00144 #ifdef EVK1100_REVA
00145 #  define LED0_GPIO   AVR32_PIN_PX13
00146 #  define LED1_GPIO   AVR32_PIN_PX14
00147 #  define LED2_GPIO   AVR32_PIN_PX15
00148 #  define LED3_GPIO   AVR32_PIN_PX16
00149 #  define LED4_GPIO   AVR32_PIN_PB19
00150 #  define LED5_GPIO   AVR32_PIN_PB20
00151 #  define LED6_GPIO   AVR32_PIN_PB21
00152 #  define LED7_GPIO   AVR32_PIN_PB22
00153 #else
00154 #  define LED0_GPIO   AVR32_PIN_PB27
00155 #  define LED1_GPIO   AVR32_PIN_PB28
00156 #  define LED2_GPIO   AVR32_PIN_PB29
00157 #  define LED3_GPIO   AVR32_PIN_PB30
00158 #  define LED4_GPIO   AVR32_PIN_PB19
00159 #  define LED5_GPIO   AVR32_PIN_PB20
00160 #  define LED6_GPIO   AVR32_PIN_PB21
00161 #  define LED7_GPIO   AVR32_PIN_PB22
00162 #endif
00164 
00165 
00167 
00168 #define LED0_PWM    (-1)
00169 #define LED1_PWM    (-1)
00170 #define LED2_PWM    (-1)
00171 #define LED3_PWM    (-1)
00172 #define LED4_PWM      0
00173 #define LED5_PWM      1
00174 #define LED6_PWM      2
00175 #define LED7_PWM      3
00177 
00178 
00180 
00181 #define LED0_PWM_FUNCTION   (-1)
00182 #define LED1_PWM_FUNCTION   (-1)
00183 #define LED2_PWM_FUNCTION   (-1)
00184 #define LED3_PWM_FUNCTION   (-1)
00185 #define LED4_PWM_FUNCTION   AVR32_PWM_PWM_0_FUNCTION
00186 #define LED5_PWM_FUNCTION   AVR32_PWM_PWM_1_FUNCTION
00187 #define LED6_PWM_FUNCTION   AVR32_PWM_PWM_2_FUNCTION
00188 #define LED7_PWM_FUNCTION   AVR32_PWM_PWM_3_FUNCTION
00190 
00191 
00193 
00194 #ifdef EVK1100_REVA
00195 #  define LED_MONO0_GREEN   LED4
00196 #  define LED_MONO1_GREEN   LED5
00197 #  define LED_MONO2_GREEN   LED6
00198 #  define LED_MONO3_GREEN   LED7
00199 #  define LED_BI0_GREEN     LED1
00200 #  define LED_BI0_RED       LED0
00201 #  define LED_BI1_GREEN     LED3
00202 #  define LED_BI1_RED       LED2
00203 #else
00204 #  define LED_MONO0_GREEN   LED0
00205 #  define LED_MONO1_GREEN   LED1
00206 #  define LED_MONO2_GREEN   LED2
00207 #  define LED_MONO3_GREEN   LED3
00208 #  define LED_BI0_GREEN     LED5
00209 #  define LED_BI0_RED       LED4
00210 #  define LED_BI1_GREEN     LED7
00211 #  define LED_BI1_RED       LED6
00212 #endif
00214 
00215 
00218 
00219 #ifdef EVK1100_REVA
00220 #  define GPIO_PUSH_BUTTON_0    AVR32_PIN_PB28
00221 #  define GPIO_PUSH_BUTTON_1    AVR32_PIN_PB29
00222 #  define GPIO_PUSH_BUTTON_2    AVR32_PIN_PB27
00223 #else
00224 #  define GPIO_PUSH_BUTTON_0    AVR32_PIN_PX16
00225 #  define GPIO_PUSH_BUTTON_1    AVR32_PIN_PX19
00226 #  define GPIO_PUSH_BUTTON_2    AVR32_PIN_PX22
00227 #endif
00229 
00230 
00233 
00234 #define GPIO_JOYSTICK_PUSH    AVR32_PIN_PA20
00235 #define GPIO_JOYSTICK_LEFT    AVR32_PIN_PA25
00236 #define GPIO_JOYSTICK_RIGHT   AVR32_PIN_PA28
00237 #define GPIO_JOYSTICK_UP      AVR32_PIN_PA26
00238 #define GPIO_JOYSTICK_DOWN    AVR32_PIN_PA27
00240 
00241 
00244 
00245 #define ADC_POTENTIOMETER_CHANNEL   1
00246 #define ADC_POTENTIOMETER_PIN       AVR32_ADC_AD_1_PIN
00247 #define ADC_POTENTIOMETER_FUNCTION  AVR32_ADC_AD_1_FUNCTION
00249 
00250 
00253 
00254 #define ADC_TEMPERATURE_CHANNEL     0
00255 #define ADC_TEMPERATURE_PIN         AVR32_ADC_AD_0_PIN
00256 #define ADC_TEMPERATURE_FUNCTION    AVR32_ADC_AD_0_FUNCTION
00258 
00259 
00262 
00263 #define ADC_LIGHT_CHANNEL           2
00264 #define ADC_LIGHT_PIN               AVR32_ADC_AD_2_PIN
00265 #define ADC_LIGHT_FUNCTION          AVR32_ADC_AD_2_FUNCTION
00267 
00268 
00271 
00272 #define DIP204_SPI                  (&AVR32_SPI1)
00273 #define DIP204_SPI_CS               2
00274 #define DIP204_SPI_SCK_PIN          AVR32_SPI1_SCK_0_PIN
00275 #define DIP204_SPI_SCK_FUNCTION     AVR32_SPI1_SCK_0_FUNCTION
00276 #define DIP204_SPI_MISO_PIN         AVR32_SPI1_MISO_0_PIN
00277 #define DIP204_SPI_MISO_FUNCTION    AVR32_SPI1_MISO_0_FUNCTION
00278 #define DIP204_SPI_MOSI_PIN         AVR32_SPI1_MOSI_0_PIN
00279 #define DIP204_SPI_MOSI_FUNCTION    AVR32_SPI1_MOSI_0_FUNCTION
00280 #define DIP204_SPI_NPCS_PIN         AVR32_SPI1_NPCS_2_PIN
00281 #define DIP204_SPI_NPCS_FUNCTION    AVR32_SPI1_NPCS_2_FUNCTION
00283 
00284 
00286 
00287 #define DIP204_BACKLIGHT_PIN        AVR32_PIN_PB18
00288 #define DIP204_PWM_CHANNEL          6
00289 #define DIP204_PWM_PIN              AVR32_PWM_PWM_6_PIN
00290 #define DIP204_PWM_FUNCTION         AVR32_PWM_PWM_6_FUNCTION
00292 
00293 
00296 
00297 #define AT45DBX_SPI                 (&AVR32_SPI1)
00298 #define AT45DBX_SPI_SCK_PIN         AVR32_SPI1_SCK_0_PIN
00299 #define AT45DBX_SPI_SCK_FUNCTION    AVR32_SPI1_SCK_0_FUNCTION
00300 #define AT45DBX_SPI_MISO_PIN        AVR32_SPI1_MISO_0_PIN
00301 #define AT45DBX_SPI_MISO_FUNCTION   AVR32_SPI1_MISO_0_FUNCTION
00302 #define AT45DBX_SPI_MOSI_PIN        AVR32_SPI1_MOSI_0_PIN
00303 #define AT45DBX_SPI_MOSI_FUNCTION   AVR32_SPI1_MOSI_0_FUNCTION
00304 #define AT45DBX_SPI_NPCS0_PIN       AVR32_SPI1_NPCS_0_PIN
00305 #define AT45DBX_SPI_NPCS0_FUNCTION  AVR32_SPI1_NPCS_0_FUNCTION
00307 
00308 
00311 
00312 #define SD_MMC_CARD_DETECT_PIN      AVR32_PIN_PA02
00313 #define SD_MMC_WRITE_PROTECT_PIN    AVR32_PIN_PA07
00314 #define SD_MMC_SPI                  (&AVR32_SPI1)
00315 #define SD_MMC_SPI_CS               1
00316 #define SD_MMC_SPI_SCK_PIN          AVR32_SPI1_SCK_0_PIN
00317 #define SD_MMC_SPI_SCK_FUNCTION     AVR32_SPI1_SCK_0_FUNCTION
00318 #define SD_MMC_SPI_MISO_PIN         AVR32_SPI1_MISO_0_PIN
00319 #define SD_MMC_SPI_MISO_FUNCTION    AVR32_SPI1_MISO_0_FUNCTION
00320 #define SD_MMC_SPI_MOSI_PIN         AVR32_SPI1_MOSI_0_PIN
00321 #define SD_MMC_SPI_MOSI_FUNCTION    AVR32_SPI1_MOSI_0_FUNCTION
00322 #define SD_MMC_SPI_NPCS_PIN         AVR32_SPI1_NPCS_1_PIN
00323 #define SD_MMC_SPI_NPCS_FUNCTION    AVR32_SPI1_NPCS_1_FUNCTION
00325 
00326 
00327 #endif  // _EVK1100_H_

Generated on Wed May 7 14:40:10 2008 for AVR32114 Using the AVR32 LCD Controller by  doxygen 1.5.3-20071008