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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [rtos/] [freertos-6.1.1/] [Demo/] [AVR32_UC3/] [BOARDS/] [EVK1101/] [evk1101.h] - Blame information for rev 609

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

Line No. Rev Author Line
1 589 jeremybenn
/*This file is prepared for Doxygen automatic documentation generation.*/
2
/*! \file *********************************************************************
3
 *
4
 * \brief AT32UC3B EVK1101 board header file.
5
 *
6
 * This file contains definitions and services related to the features of the
7
 * EVK1101 board.
8
 *
9
 * - Compiler:           IAR EWAVR32 and GNU GCC for AVR32
10
 * - Supported devices:  All AVR32 AT32UC3B 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 _EVK1101_H_
47
#define _EVK1101_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 USB Definitions
80
 */
81
//! @{
82
 
83
//! Multiplexed pin used for USB_ID: AVR32_USBB_USB_ID_x_x.
84
//! To be selected according to the AVR32_USBB_USB_ID_x_x_PIN and
85
//! AVR32_USBB_USB_ID_x_x_FUNCTION definitions from <avr32/uc3bxxxx.h>.
86
#define USB_ID                      AVR32_USBB_USB_ID_0_0
87
 
88
//! Multiplexed pin used for USB_VBOF: AVR32_USBB_USB_VBOF_x_x.
89
//! To be selected according to the AVR32_USBB_USB_VBOF_x_x_PIN and
90
//! AVR32_USBB_USB_VBOF_x_x_FUNCTION definitions from <avr32/uc3bxxxx.h>.
91
#define USB_VBOF                    AVR32_USBB_USB_VBOF_0_0
92
 
93
//! Active level of the USB_VBOF output pin.
94
#define USB_VBOF_ACTIVE_LEVEL       LOW
95
 
96
//! USB overcurrent detection pin.
97
#define USB_OVERCURRENT_DETECT_PIN  AVR32_PIN_PA20
98
 
99
//! @}
100
 
101
 
102
//! Number of LEDs.
103
#define LED_COUNT   4
104
 
105
/*! \name GPIO Connections of LEDs
106
 */
107
//! @{
108
#define LED0_GPIO   AVR32_PIN_PA07
109
#define LED1_GPIO   AVR32_PIN_PA08
110
#define LED2_GPIO   AVR32_PIN_PA21
111
#define LED3_GPIO   AVR32_PIN_PA22
112
//! @}
113
 
114
/*! \name PWM Channels of LEDs
115
 */
116
//! @{
117
#define LED0_PWM    0
118
#define LED1_PWM    1
119
#define LED2_PWM    2
120
#define LED3_PWM    6
121
//! @}
122
 
123
/*! \name PWM Functions of LEDs
124
 */
125
//! @{
126
#define LED0_PWM_FUNCTION   AVR32_PWM_PWM_0_0_FUNCTION
127
#define LED1_PWM_FUNCTION   AVR32_PWM_PWM_1_0_FUNCTION
128
#define LED2_PWM_FUNCTION   AVR32_PWM_PWM_2_0_FUNCTION
129
#define LED3_PWM_FUNCTION   AVR32_PWM_PWM_6_0_FUNCTION
130
//! @}
131
 
132
/*! \name Color Identifiers of LEDs to Use with LED Functions
133
 */
134
//! @{
135
#define LED_MONO0_GREEN   LED0
136
#define LED_MONO1_GREEN   LED1
137
#define LED_MONO2_GREEN   LED2
138
#define LED_MONO3_GREEN   LED3
139
//! @}
140
 
141
 
142
/*! \name GPIO Connections of Push Buttons
143
 */
144
//! @{
145
#define GPIO_PUSH_BUTTON_0    AVR32_PIN_PB02
146
#define GPIO_PUSH_BUTTON_1    AVR32_PIN_PB03
147
//! @}
148
 
149
 
150
/*! \name GPIO Connections of the Joystick
151
 */
152
//! @{
153
#define GPIO_JOYSTICK_PUSH    AVR32_PIN_PA13
154
#define GPIO_JOYSTICK_LEFT    AVR32_PIN_PB06
155
#define GPIO_JOYSTICK_RIGHT   AVR32_PIN_PB09
156
#define GPIO_JOYSTICK_UP      AVR32_PIN_PB07
157
#define GPIO_JOYSTICK_DOWN    AVR32_PIN_PB08
158
//! @}
159
 
160
 
161
/*! \name ADC Connection of the Temperature Sensor
162
 */
163
//! @{
164
#define ADC_TEMPERATURE_CHANNEL     7
165
#define ADC_TEMPERATURE_PIN         AVR32_ADC_AD_7_PIN
166
#define ADC_TEMPERATURE_FUNCTION    AVR32_ADC_AD_7_FUNCTION
167
//! @}
168
 
169
 
170
/*! \name ADC Connection of the Light Sensor
171
 */
172
//! @{
173
#define ADC_LIGHT_CHANNEL           6
174
#define ADC_LIGHT_PIN               AVR32_ADC_AD_6_PIN
175
#define ADC_LIGHT_FUNCTION          AVR32_ADC_AD_6_FUNCTION
176
//! @}
177
 
178
 
179
/*! \name ADC Connections of the Accelerometer
180
 */
181
//! @{
182
#define ADC_ACC_X_CHANNEL           1
183
#define ADC_ACC_X_PIN               AVR32_ADC_AD_1_PIN
184
#define ADC_ACC_X_FUNCTION          AVR32_ADC_AD_1_FUNCTION
185
#define ADC_ACC_Y_CHANNEL           2
186
#define ADC_ACC_Y_PIN               AVR32_ADC_AD_2_PIN
187
#define ADC_ACC_Y_FUNCTION          AVR32_ADC_AD_2_FUNCTION
188
#define ADC_ACC_Z_CHANNEL           3
189
#define ADC_ACC_Z_PIN               AVR32_ADC_AD_3_PIN
190
#define ADC_ACC_Z_FUNCTION          AVR32_ADC_AD_3_FUNCTION
191
//! @}
192
 
193
 
194
/*! \name PWM Connections of Audio
195
 */
196
//! @{
197
#define AUDIO_LOW_PWM_CHANNEL       5
198
#define AUDIO_LOW_PWM_PIN           AVR32_PWM_PWM_5_0_PIN
199
#define AUDIO_LOW_PWM_FUNCTION      AVR32_PWM_PWM_5_0_FUNCTION
200
#define AUDIO_HIGH_PWM_CHANNEL      6
201
#define AUDIO_HIGH_PWM_PIN          AVR32_PWM_PWM_6_1_PIN
202
#define AUDIO_HIGH_PWM_FUNCTION     AVR32_PWM_PWM_6_1_FUNCTION
203
//! @}
204
 
205
 
206
/*! \name SPI Connections of the AT45DBX Data Flash Memory
207
 */
208
//! @{
209
#define AT45DBX_SPI                 (&AVR32_SPI)
210
#define AT45DBX_SPI_SCK_PIN         AVR32_SPI_SCK_0_0_PIN
211
#define AT45DBX_SPI_SCK_FUNCTION    AVR32_SPI_SCK_0_0_FUNCTION
212
#define AT45DBX_SPI_MISO_PIN        AVR32_SPI_MISO_0_0_PIN
213
#define AT45DBX_SPI_MISO_FUNCTION   AVR32_SPI_MISO_0_0_FUNCTION
214
#define AT45DBX_SPI_MOSI_PIN        AVR32_SPI_MOSI_0_0_PIN
215
#define AT45DBX_SPI_MOSI_FUNCTION   AVR32_SPI_MOSI_0_0_FUNCTION
216
#define AT45DBX_SPI_NPCS0_PIN       AVR32_SPI_NPCS_0_0_PIN
217
#define AT45DBX_SPI_NPCS0_FUNCTION  AVR32_SPI_NPCS_0_0_FUNCTION
218
//! @}
219
 
220
 
221
/*! \name GPIO and SPI Connections of the SD/MMC Connector
222
 */
223
//! @{
224
#define SD_MMC_CARD_DETECT_PIN      AVR32_PIN_PB00
225
#define SD_MMC_WRITE_PROTECT_PIN    AVR32_PIN_PB01
226
#define SD_MMC_SPI                  (&AVR32_SPI)
227
#define SD_MMC_SPI_CS               1
228
#define SD_MMC_SPI_SCK_PIN          AVR32_SPI_SCK_0_0_PIN
229
#define SD_MMC_SPI_SCK_FUNCTION     AVR32_SPI_SCK_0_0_FUNCTION
230
#define SD_MMC_SPI_MISO_PIN         AVR32_SPI_MISO_0_0_PIN
231
#define SD_MMC_SPI_MISO_FUNCTION    AVR32_SPI_MISO_0_0_FUNCTION
232
#define SD_MMC_SPI_MOSI_PIN         AVR32_SPI_MOSI_0_0_PIN
233
#define SD_MMC_SPI_MOSI_FUNCTION    AVR32_SPI_MOSI_0_0_FUNCTION
234
#define SD_MMC_SPI_NPCS_PIN         AVR32_SPI_NPCS_1_0_PIN
235
#define SD_MMC_SPI_NPCS_FUNCTION    AVR32_SPI_NPCS_1_0_FUNCTION
236
//! @}
237
 
238
 
239
#endif  // _EVK1101_H_

powered by: WebSVN 2.1.0

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