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