]> git.sur5r.net Git - freertos/blob - Demo/uIP_Demo_IAR_ARM7/SrcIAR/Board.h
First version under SVN is V4.0.1
[freertos] / Demo / uIP_Demo_IAR_ARM7 / SrcIAR / Board.h
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
12 *\r
13 * Creation            : JG   20/Jun/2005\r
14 *----------------------------------------------------------------------------\r
15 */\r
16 #ifndef Board_h\r
17 #define Board_h\r
18 \r
19 #include <AT91SAM7X256.h>\r
20 #define __inline inline\r
21 #include <lib_AT91SAM7X256.h>\r
22 \r
23 #define true    -1\r
24 #define false   0\r
25 \r
26 /*-------------------------------*/\r
27 /* SAM7Board Memories Definition */\r
28 /*-------------------------------*/\r
29 // The AT91SAM7X128 embeds a 32-Kbyte SRAM bank, and 128K-Byte Flash\r
30 \r
31 #define  FLASH_PAGE_NB          256\r
32 #define  FLASH_PAGE_SIZE        128\r
33 \r
34 /*-----------------*/\r
35 /* Leds Definition */\r
36 /*-----------------*/\r
37 #define LED1            (1<<19) // PB19\r
38 #define LED2            (1<<20) // PB20\r
39 #define LED3            (1<<21) // PB21\r
40 #define LED4            (1<<22) // PB22\r
41 #define NB_LED                  4\r
42 \r
43 #define LED_MASK        (LED1|LED2|LED3|LED4)\r
44 \r
45 /*-------------------------*/\r
46 /* Push Buttons Definition */\r
47 /*-------------------------*/\r
48 \r
49 #define SW1_MASK        (1<<21) // PA21\r
50 #define SW2_MASK        (1<<22) // PA22\r
51 #define SW3_MASK        (1<<23) // PA23\r
52 #define SW4_MASK        (1<<24) // PA24\r
53 #define SW_MASK         (SW1_MASK|SW2_MASK|SW3_MASK|SW4_MASK)\r
54 \r
55 \r
56 #define SW1     (1<<21) // PA21\r
57 #define SW2     (1<<22) // PA22\r
58 #define SW3     (1<<23) // PA23\r
59 #define SW4     (1<<24) // PA24\r
60 \r
61 /*--------------*/\r
62 /* Master Clock */\r
63 /*--------------*/\r
64 \r
65 #define EXT_OC          18432000   // Exetrnal ocilator MAINCK\r
66 #define MCK             47923200   // MCK (PLLRC div by 2)\r
67 #define MCKKHz          (MCK/1000) //\r
68 \r
69 #endif /* Board_h */\r