521
|
1 |
// ----------------------------------------------------------------------------
|
|
2 |
// ATMEL Microcontroller Software Support - ROUSSET -
|
|
3 |
// ----------------------------------------------------------------------------
|
|
4 |
// DISCLAIMER: THIS SOFTWARE IS PROVIDED BY ATMEL "AS IS" AND ANY EXPRESS OR
|
|
5 |
// IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
|
|
6 |
// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT ARE
|
|
7 |
// DISCLAIMED. IN NO EVENT SHALL ATMEL BE LIABLE FOR ANY DIRECT, INDIRECT,
|
|
8 |
// INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
|
|
9 |
// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA,
|
|
10 |
// OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
|
|
11 |
// LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
|
|
12 |
// NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
|
|
13 |
// EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
14 |
// ----------------------------------------------------------------------------
|
|
15 |
// File Name : AT91SAM7X-EK.h
|
|
16 |
// Object : AT91SAM7X-EK Evaluation Board Features Definition File
|
|
17 |
//
|
|
18 |
// ----------------------------------------------------------------------------
|
|
19 |
|
|
20 |
#ifndef AT91SAM7X_EK_H
|
|
21 |
#define AT91SAM7X_EK_H
|
|
22 |
|
|
23 |
/*-----------------*/
|
|
24 |
/* LEDs Definition */
|
|
25 |
/*-----------------*/
|
|
26 |
#define AT91B_LED1 (1<<19) // AT91C_PIO_PB19 AT91C_PB19_PWM0 AT91C_PB19_TCLK1
|
|
27 |
#define AT91B_LED2 (1<<20) // AT91C_PIO_PB20 AT91C_PB20_PWM1 AT91C_PB20_PWM1
|
|
28 |
#define AT91B_LED3 (AT91C_PIO_PB21) // AT91C_PIO_PB21 AT91C_PB21_PWM2 AT91C_PB21_PCK1
|
|
29 |
#define AT91B_LED4 (AT91C_PIO_PB22) // AT91C_PIO_PB22 AT91C_PB22_PWM3 AT91C_PB22_PCK2
|
|
30 |
#define AT91B_NB_LEB 4
|
|
31 |
#define AT91B_LED_MASK (AT91B_LED1|AT91B_LED2|AT91B_LED3|AT91B_LED4)
|
|
32 |
#define AT91D_BASE_PIO_LED (AT91C_BASE_PIOB)
|
|
33 |
|
|
34 |
#define AT91B_POWERLED (1<<25) // PB25
|
|
35 |
|
|
36 |
|
|
37 |
/*-------------------------------*/
|
|
38 |
/* JOYSTICK Position Definition */
|
|
39 |
/*-------------------------------*/
|
|
40 |
#define AT91B_SW1 (1<<21) // PA21 Up Button AT91C_PA21_TF AT91C_PA21_NPCS10
|
|
41 |
#define AT91B_SW2 (1<<22) // PA22 Down Button AT91C_PA22_TK AT91C_PA22_SPCK1
|
|
42 |
#define AT91B_SW3 (1<<23) // PA23 Left Button AT91C_PA23_TD AT91C_PA23_MOSI1
|
|
43 |
#define AT91B_SW4 (1<<24) // PA24 Right Button AT91C_PA24_RD AT91C_PA24_MISO1
|
|
44 |
#define AT91B_SW5 (1<<25) // PA25 Push Button AT91C_PA25_RK AT91C_PA25_NPCS11
|
|
45 |
#define AT91B_SW_MASK (AT91B_SW1|AT91B_SW2|AT91B_SW3|AT91B_SW4|AT91B_SW5)
|
|
46 |
|
|
47 |
|
|
48 |
#define AT91D_BASE_PIO_SW (AT91C_BASE_PIOA)
|
|
49 |
|
|
50 |
/*------------------*/
|
|
51 |
/* CAN Definition */
|
|
52 |
/*------------------*/
|
|
53 |
#define AT91B_CAN_TRANSCEIVER_RS (1<<2) // PA2
|
|
54 |
|
|
55 |
/*--------------*/
|
|
56 |
/* Clocks */
|
|
57 |
/*--------------*/
|
|
58 |
#define AT91B_MAIN_OSC 18432000 // Main Oscillator MAINCK
|
|
59 |
#define AT91B_MCK ((18432000*73/14)/2) // Output PLL Clock
|
|
60 |
|
|
61 |
#endif /* AT91SAM7X-EK_H */
|