OpenCores
URL https://opencores.org/ocsvn/openrisc/openrisc/trunk

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [rtos/] [freertos-6.1.1/] [Demo/] [AVR32_UC3/] [BOARDS/] [EVK1100/] [evk1100_revA.h] - Blame information for rev 800

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 589 jeremybenn
/* This header file is part of the ATMEL AVR32-SoftwareFramework-AT32UC3-1.5.0 Release */
2
 
3
/*This file is prepared for Doxygen automatic documentation generation.*/
4
/*! \file *********************************************************************
5
 *
6
 * \brief AT32UC3A EVK1100 board header file.
7
 *
8
 * This file contains definitions and services related to the features of the
9
 * EVK1100 board rev. A.
10
 *
11
 * To use this board, define BOARD=EVK1100 and EVK1100_REVA.
12
 *
13
 * - Compiler:           IAR EWAVR32 and GNU GCC for AVR32
14
 * - Supported devices:  All AVR32 AT32UC3A devices can be used.
15
 * - AppNote:
16
 *
17
 * \author               Atmel Corporation: http://www.atmel.com \n
18
 *                       Support and FAQ: http://support.atmel.no/
19
 *
20
 ******************************************************************************/
21
 
22
/* Copyright (c) 2009 Atmel Corporation. All rights reserved.
23
 *
24
 * Redistribution and use in source and binary forms, with or without
25
 * modification, are permitted provided that the following conditions are met:
26
 *
27
 * 1. Redistributions of source code must retain the above copyright notice, this
28
 * list of conditions and the following disclaimer.
29
 *
30
 * 2. Redistributions in binary form must reproduce the above copyright notice,
31
 * this list of conditions and the following disclaimer in the documentation
32
 * and/or other materials provided with the distribution.
33
 *
34
 * 3. The name of Atmel may not be used to endorse or promote products derived
35
 * from this software without specific prior written permission.
36
 *
37
 * 4. This software may only be redistributed and used in connection with an Atmel
38
 * AVR product.
39
 *
40
 * THIS SOFTWARE IS PROVIDED BY ATMEL "AS IS" AND ANY EXPRESS OR IMPLIED
41
 * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
42
 * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT ARE
43
 * EXPRESSLY AND SPECIFICALLY DISCLAIMED. IN NO EVENT SHALL ATMEL BE LIABLE FOR
44
 * ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
45
 * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
46
 * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
47
 * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
48
 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
49
 * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE
50
 *
51
 */
52
 
53
#ifndef _EVK1100_REVA_H_
54
#define _EVK1100_REVA_H_
55
 
56
#include "compiler.h"
57
 
58
#ifdef __AVR32_ABI_COMPILER__ // Automatically defined when compiling for AVR32, not when assembling.
59
#  include "led.h"
60
#endif  // __AVR32_ABI_COMPILER__
61
 
62
 
63
/*! \name Oscillator Definitions
64
 */
65
//! @{
66
 
67
// RCOsc has no custom calibration by default. Set the following definition to
68
// the appropriate value if a custom RCOsc calibration has been applied to your
69
// part.
70
//#define FRCOSC          AVR32_PM_RCOSC_FREQUENCY              //!< RCOsc frequency: Hz.
71
 
72
#define FOSC32          32768                                 //!< Osc32 frequency: Hz.
73
#define OSC32_STARTUP   AVR32_PM_OSCCTRL32_STARTUP_8192_RCOSC //!< Osc32 startup time: RCOsc periods.
74
 
75
#define FOSC0           12000000                              //!< Osc0 frequency: Hz.
76
#define OSC0_STARTUP    AVR32_PM_OSCCTRL0_STARTUP_2048_RCOSC  //!< Osc0 startup time: RCOsc periods.
77
 
78
// Osc1 crystal is not mounted by default. Set the following definitions to the
79
// appropriate values if a custom Osc1 crystal is mounted on your board.
80
//#define FOSC1           12000000                              //!< Osc1 frequency: Hz.
81
//#define OSC1_STARTUP    AVR32_PM_OSCCTRL1_STARTUP_2048_RCOSC  //!< Osc1 startup time: RCOsc periods.
82
 
83
//! @}
84
 
85
 
86
/*! \name SDRAM Definitions
87
 */
88
//! @{
89
 
90
//! Part header file of used SDRAM(s).
91
#define SDRAM_PART_HDR  "MT48LC16M16A2TG7E/mt48lc16m16a2tg7e.h"
92
 
93
//! Data bus width to use the SDRAM(s) with (16 or 32 bits; always 16 bits on
94
//! UC3).
95
#define SDRAM_DBW       16
96
 
97
//! @}
98
 
99
 
100
/*! \name USB Definitions
101
 */
102
//! @{
103
 
104
//! Multiplexed pin used for USB_ID: AVR32_USBB_USB_ID_x_x.
105
//! To be selected according to the AVR32_USBB_USB_ID_x_x_PIN and
106
//! AVR32_USBB_USB_ID_x_x_FUNCTION definitions from <avr32/uc3axxxx.h>.
107
#define USB_ID                      AVR32_USBB_USB_ID_0_0
108
 
109
//! Multiplexed pin used for USB_VBOF: AVR32_USBB_USB_VBOF_x_x.
110
//! To be selected according to the AVR32_USBB_USB_VBOF_x_x_PIN and
111
//! AVR32_USBB_USB_VBOF_x_x_FUNCTION definitions from <avr32/uc3axxxx.h>.
112
#define USB_VBOF                    AVR32_USBB_USB_VBOF_0_0
113
 
114
//! Active level of the USB_VBOF output pin.
115
#define USB_VBOF_ACTIVE_LEVEL       HIGH
116
 
117
//! USB overcurrent detection pin.
118
#define USB_OVERCURRENT_DETECT_PIN  AVR32_PIN_PB18
119
 
120
//! @}
121
 
122
 
123
//! GPIO connection of the MAC PHY PWR_DOWN/INT signal.
124
#define MACB_INTERRUPT_PIN  AVR32_PIN_PX12
125
 
126
 
127
//! Number of LEDs.
128
#define LED_COUNT   8
129
 
130
/*! \name GPIO Connections of LEDs
131
 */
132
//! @{
133
#define LED0_GPIO   AVR32_PIN_PX13
134
#define LED1_GPIO   AVR32_PIN_PX14
135
#define LED2_GPIO   AVR32_PIN_PX15
136
#define LED3_GPIO   AVR32_PIN_PX16
137
#define LED4_GPIO   AVR32_PIN_PB19
138
#define LED5_GPIO   AVR32_PIN_PB20
139
#define LED6_GPIO   AVR32_PIN_PB21
140
#define LED7_GPIO   AVR32_PIN_PB22
141
//! @}
142
 
143
/*! \name PWM Channels of LEDs
144
 */
145
//! @{
146
#define LED0_PWM    (-1)
147
#define LED1_PWM    (-1)
148
#define LED2_PWM    (-1)
149
#define LED3_PWM    (-1)
150
#define LED4_PWM      0
151
#define LED5_PWM      1
152
#define LED6_PWM      2
153
#define LED7_PWM      3
154
//! @}
155
 
156
/*! \name PWM Functions of LEDs
157
 */
158
//! @{
159
#define LED0_PWM_FUNCTION   (-1)
160
#define LED1_PWM_FUNCTION   (-1)
161
#define LED2_PWM_FUNCTION   (-1)
162
#define LED3_PWM_FUNCTION   (-1)
163
#define LED4_PWM_FUNCTION   AVR32_PWM_0_FUNCTION
164
#define LED5_PWM_FUNCTION   AVR32_PWM_1_FUNCTION
165
#define LED6_PWM_FUNCTION   AVR32_PWM_2_FUNCTION
166
#define LED7_PWM_FUNCTION   AVR32_PWM_3_FUNCTION
167
//! @}
168
 
169
/*! \name Color Identifiers of LEDs to Use with LED Functions
170
 */
171
//! @{
172
#define LED_MONO0_GREEN   LED4
173
#define LED_MONO1_GREEN   LED5
174
#define LED_MONO2_GREEN   LED6
175
#define LED_MONO3_GREEN   LED7
176
#define LED_BI0_GREEN     LED1
177
#define LED_BI0_RED       LED0
178
#define LED_BI1_GREEN     LED3
179
#define LED_BI1_RED       LED2
180
//! @}
181
 
182
 
183
/*! \name GPIO Connections of Push Buttons
184
 */
185
//! @{
186
#define GPIO_PUSH_BUTTON_0            AVR32_PIN_PB28
187
#define GPIO_PUSH_BUTTON_0_PRESSED    0
188
#define GPIO_PUSH_BUTTON_1            AVR32_PIN_PB29
189
#define GPIO_PUSH_BUTTON_1_PRESSED    0
190
#define GPIO_PUSH_BUTTON_2            AVR32_PIN_PB27
191
#define GPIO_PUSH_BUTTON_2_PRESSED    0
192
//! @}
193
 
194
 
195
/*! \name GPIO Connections of the Joystick
196
 */
197
//! @{
198
#define GPIO_JOYSTICK_PUSH            AVR32_PIN_PA20
199
#define GPIO_JOYSTICK_PUSH_PRESSED    0
200
#define GPIO_JOYSTICK_LEFT            AVR32_PIN_PA25
201
#define GPIO_JOYSTICK_LEFT_PRESSED    0
202
#define GPIO_JOYSTICK_RIGHT           AVR32_PIN_PA28
203
#define GPIO_JOYSTICK_RIGHT_PRESSED   0
204
#define GPIO_JOYSTICK_UP              AVR32_PIN_PA26
205
#define GPIO_JOYSTICK_UP_PRESSED      0
206
#define GPIO_JOYSTICK_DOWN            AVR32_PIN_PA27
207
#define GPIO_JOYSTICK_DOWN_PRESSED    0
208
//! @}
209
 
210
 
211
/*! \name ADC Connection of the Potentiometer
212
 */
213
//! @{
214
#define ADC_POTENTIOMETER_CHANNEL   1
215
#define ADC_POTENTIOMETER_PIN       AVR32_ADC_AD_1_PIN
216
#define ADC_POTENTIOMETER_FUNCTION  AVR32_ADC_AD_1_FUNCTION
217
//! @}
218
 
219
 
220
/*! \name ADC Connection of the Temperature Sensor
221
 */
222
//! @{
223
#define ADC_TEMPERATURE_CHANNEL     0
224
#define ADC_TEMPERATURE_PIN         AVR32_ADC_AD_0_PIN
225
#define ADC_TEMPERATURE_FUNCTION    AVR32_ADC_AD_0_FUNCTION
226
//! @}
227
 
228
 
229
/*! \name ADC Connection of the Light Sensor
230
 */
231
//! @{
232
#define ADC_LIGHT_CHANNEL           2
233
#define ADC_LIGHT_PIN               AVR32_ADC_AD_2_PIN
234
#define ADC_LIGHT_FUNCTION          AVR32_ADC_AD_2_FUNCTION
235
//! @}
236
 
237
 
238
/*! \name SPI Connections of the DIP204 LCD
239
 */
240
//! @{
241
#define DIP204_SPI                  (&AVR32_SPI1)
242
#define DIP204_SPI_NPCS             2
243
#define DIP204_SPI_SCK_PIN          AVR32_SPI1_SCK_0_0_PIN
244
#define DIP204_SPI_SCK_FUNCTION     AVR32_SPI1_SCK_0_0_FUNCTION
245
#define DIP204_SPI_MISO_PIN         AVR32_SPI1_MISO_0_0_PIN
246
#define DIP204_SPI_MISO_FUNCTION    AVR32_SPI1_MISO_0_0_FUNCTION
247
#define DIP204_SPI_MOSI_PIN         AVR32_SPI1_MOSI_0_0_PIN
248
#define DIP204_SPI_MOSI_FUNCTION    AVR32_SPI1_MOSI_0_0_FUNCTION
249
#define DIP204_SPI_NPCS_PIN         AVR32_SPI1_NPCS_2_0_PIN
250
#define DIP204_SPI_NPCS_FUNCTION    AVR32_SPI1_NPCS_2_0_FUNCTION
251
//! @}
252
 
253
/*! \name GPIO and PWM Connections of the DIP204 LCD Backlight
254
 */
255
//! @{
256
#define DIP204_BACKLIGHT_PIN        AVR32_PIN_PB18
257
#define DIP204_PWM_CHANNEL          6
258
#define DIP204_PWM_PIN              AVR32_PWM_6_PIN
259
#define DIP204_PWM_FUNCTION         AVR32_PWM_6_FUNCTION
260
//! @}
261
 
262
 
263
/*! \name SPI Connections of the AT45DBX Data Flash Memory
264
 */
265
//! @{
266
#define AT45DBX_SPI                 (&AVR32_SPI1)
267
#define AT45DBX_SPI_NPCS            0
268
#define AT45DBX_SPI_SCK_PIN         AVR32_SPI1_SCK_0_0_PIN
269
#define AT45DBX_SPI_SCK_FUNCTION    AVR32_SPI1_SCK_0_0_FUNCTION
270
#define AT45DBX_SPI_MISO_PIN        AVR32_SPI1_MISO_0_0_PIN
271
#define AT45DBX_SPI_MISO_FUNCTION   AVR32_SPI1_MISO_0_0_FUNCTION
272
#define AT45DBX_SPI_MOSI_PIN        AVR32_SPI1_MOSI_0_0_PIN
273
#define AT45DBX_SPI_MOSI_FUNCTION   AVR32_SPI1_MOSI_0_0_FUNCTION
274
#define AT45DBX_SPI_NPCS0_PIN       AVR32_SPI1_NPCS_0_0_PIN
275
#define AT45DBX_SPI_NPCS0_FUNCTION  AVR32_SPI1_NPCS_0_0_FUNCTION
276
//! @}
277
 
278
 
279
/*! \name GPIO and SPI Connections of the SD/MMC Connector
280
 */
281
//! @{
282
#define SD_MMC_CARD_DETECT_PIN      AVR32_PIN_PA02
283
#define SD_MMC_WRITE_PROTECT_PIN    AVR32_PIN_PA07
284
#define SD_MMC_SPI                  (&AVR32_SPI1)
285
#define SD_MMC_SPI_NPCS             1
286
#define SD_MMC_SPI_SCK_PIN          AVR32_SPI1_SCK_0_0_PIN
287
#define SD_MMC_SPI_SCK_FUNCTION     AVR32_SPI1_SCK_0_0_FUNCTION
288
#define SD_MMC_SPI_MISO_PIN         AVR32_SPI1_MISO_0_0_PIN
289
#define SD_MMC_SPI_MISO_FUNCTION    AVR32_SPI1_MISO_0_0_FUNCTION
290
#define SD_MMC_SPI_MOSI_PIN         AVR32_SPI1_MOSI_0_0_PIN
291
#define SD_MMC_SPI_MOSI_FUNCTION    AVR32_SPI1_MOSI_0_0_FUNCTION
292
#define SD_MMC_SPI_NPCS_PIN         AVR32_SPI1_NPCS_1_0_PIN
293
#define SD_MMC_SPI_NPCS_FUNCTION    AVR32_SPI1_NPCS_1_0_FUNCTION
294
//! @}
295
 
296
 
297
/*! \name TWI Connections of the Spare TWI Connector
298
 */
299
//! @{
300
#define SPARE_TWI                   (&AVR32_TWI)
301
#define SPARE_TWI_SCL_PIN           AVR32_TWI_SCL_0_0_PIN
302
#define SPARE_TWI_SCL_FUNCTION      AVR32_TWI_SCL_0_0_FUNCTION
303
#define SPARE_TWI_SDA_PIN           AVR32_TWI_SDA_0_0_PIN
304
#define SPARE_TWI_SDA_FUNCTION      AVR32_TWI_SDA_0_0_FUNCTION
305
//! @}
306
 
307
 
308
/*! \name SPI Connections of the Spare SPI Connector
309
 */
310
//! @{
311
#define SPARE_SPI                   (&AVR32_SPI0)
312
#define SPARE_SPI_NPCS              0
313
#define SPARE_SPI_SCK_PIN           AVR32_SPI0_SCK_0_0_PIN
314
#define SPARE_SPI_SCK_FUNCTION      AVR32_SPI0_SCK_0_0_FUNCTION
315
#define SPARE_SPI_MISO_PIN          AVR32_SPI0_MISO_0_0_PIN
316
#define SPARE_SPI_MISO_FUNCTION     AVR32_SPI0_MISO_0_0_FUNCTION
317
#define SPARE_SPI_MOSI_PIN          AVR32_SPI0_MOSI_0_0_PIN
318
#define SPARE_SPI_MOSI_FUNCTION     AVR32_SPI0_MOSI_0_0_FUNCTION
319
#define SPARE_SPI_NPCS_PIN          AVR32_SPI0_NPCS_0_0_PIN
320
#define SPARE_SPI_NPCS_FUNCTION     AVR32_SPI0_NPCS_0_0_FUNCTION
321
//! @}
322
 
323
 
324
#endif  // _EVK1100_REVA_H_

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.