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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [rtos/] [freertos-6.1.1/] [Demo/] [lwIP_AVR32_UC3/] [BOARDS/] [EVK1100/] [evk1100.h] - Blame information for rev 583

Details | Compare with Previous | View Log

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

powered by: WebSVN 2.1.0

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