Go to the documentation of this file.00001 #define FLASH_BASE ((unsigned int *)0x01000000)
00002 #define FLASH_SIZE (2*1024*1024)
00003
00004
00005
00006
00007
00008
00009 #define EBI_CSR_0 ((unsigned int *)(FLASH_BASE | 0x2539)
00010 #define EBI_CSR_1 ((unsigned int *)0x10000000)
00011 #define EBI_CSR_2 ((unsigned int *)0x20000000)
00012 #define EBI_CSR_3 ((unsigned int *)0x30000000)
00013 #define EBI_CSR_4 ((unsigned int *)0x40000000)
00014 #define EBI_CSR_5 ((unsigned int *)0x50000000)
00015 #define EBI_CSR_6 ((unsigned int *)0x60000000)
00016 #define EBI_CSR_7 ((unsigned int *)0x70000000)
00017
00018
00019
00020
00021 #define LED1 _BV(16)
00022 #define LED2 _BV(17)
00023 #define LED3 _BV(18)
00024 #define LED4 _BV(19)
00025 #define LED5 _BV(3)
00026 #define LED6 _BV(4)
00027 #define LED7 _BV(5)
00028 #define LED8 _BV(6)
00029
00030 #define LED_PIO_CTRL 1
00031 #define LED_MASK (LED1|LED2|LED3|LED4|LED5|LED6|LED7|LED8)
00032
00033 #define LED_ON PIO_CLEAR_OUT
00034 #define LED_OFF PIO_SET_OUT
00035
00036 #define SW1_MASK _BV(12)
00037 #define SW2_MASK _BV(9)
00038 #define SW3_MASK _BV(1)
00039 #define SW4_MASK _BV(2)
00040 #define SW_MASK (SW1_MASK|SW2_MASK|SW3_MASK|SW4_MASK)
00041
00042
00043
00044
00045 #define SW1 _BV(12)
00046 #define SW2 _BV(9)
00047 #define SW3 _BV(1)
00048 #define SW4 _BV(2)
00049
00050 #define PIO_SW1 _BV(12)
00051 #define PIO_SW2 _BV(9)
00052 #define PIO_SW3 _BV(1)
00053 #define PIO_SW4 _BV(2)
00054
00055
00056
00057
00058 #define SCL _BV(8)
00059 #define SDA _BV(7)
00060 #define PIO_SCL _BV(8)
00061 #define PIO_SDA _BV(7)
00062
00063
00064
00065
00066 #define MCK 66000000
00067 #define MCKKHz (MCK/1000)