1 /*----------------------------------------------------------------------------
\r
2 * ATMEL Microcontroller Software Support - ROUSSET -
\r
3 *----------------------------------------------------------------------------
\r
4 * The software is delivered "AS IS" without warranty or condition of any
\r
5 * kind, either express, implied or statutory. This includes without
\r
6 * limitation any warranty or condition with respect to merchantability or
\r
7 * fitness for any particular purpose, or against the infringements of
\r
8 * intellectual property rights of others.
\r
9 *----------------------------------------------------------------------------
\r
10 * File Name : Board.h
\r
11 * Object : AT91SAM7X Evaluation Board Features Definition File.
\r
13 * Creation : JG 20/Jun/2005
\r
14 *----------------------------------------------------------------------------
\r
19 #include "AT91SAM7X256.h"
\r
20 #include "ioat91sam7x256.h"
\r
25 /*-------------------------------*/
\r
26 /* SAM7Board Memories Definition */
\r
27 /*-------------------------------*/
\r
28 // The AT91SAM7X128 embeds a 32-Kbyte SRAM bank, and 128K-Byte Flash
\r
30 #define FLASH_PAGE_NB 256
\r
31 #define FLASH_PAGE_SIZE 128
\r
33 /*-----------------*/
\r
34 /* Leds Definition */
\r
35 /*-----------------*/
\r
36 #define LED1 (1<<19) // PB19
\r
37 #define LED2 (1<<20) // PB20
\r
38 #define LED3 (1<<21) // PB21
\r
39 #define LED4 (1<<22) // PB22
\r
42 #define LED_MASK (LED1|LED2|LED3|LED4)
\r
44 /*-------------------------*/
\r
45 /* Push Buttons Definition */
\r
46 /*-------------------------*/
\r
48 #define SW1_MASK (1<<21) // PA21
\r
49 #define SW2_MASK (1<<22) // PA22
\r
50 #define SW3_MASK (1<<23) // PA23
\r
51 #define SW4_MASK (1<<24) // PA24
\r
52 #define SW_MASK (SW1_MASK|SW2_MASK|SW3_MASK|SW4_MASK)
\r
55 #define SW1 (1<<21) // PA21
\r
56 #define SW2 (1<<22) // PA22
\r
57 #define SW3 (1<<23) // PA23
\r
58 #define SW4 (1<<24) // PA24
\r
64 #define EXT_OC 18432000 // Exetrnal ocilator MAINCK
\r
65 #define MCK 47923200 // MCK (PLLRC div by 2)
\r
66 #define MCKKHz (MCK/1000) //
\r
68 #endif /* Board_h */
\r