Go to the documentation of this file.
18 #define AT91_ADC_CR 0x00
19 #define AT91_ADC_SWRST (1 << 0)
20 #define AT91_ADC_START (1 << 1)
22 #define AT91_ADC_MR 0x04
23 #define AT91_ADC_TRGEN (1 << 0)
24 #define AT91_ADC_TRGSEL (7 << 1)
25 #define AT91_ADC_TRGSEL_TC0 (0 << 1)
26 #define AT91_ADC_TRGSEL_TC1 (1 << 1)
27 #define AT91_ADC_TRGSEL_TC2 (2 << 1)
28 #define AT91_ADC_TRGSEL_EXTERNAL (6 << 1)
29 #define AT91_ADC_LOWRES (1 << 4)
30 #define AT91_ADC_SLEEP (1 << 5)
31 #define AT91_ADC_PRESCAL (0x3f << 8)
32 #define AT91_ADC_PRESCAL_(x) ((x) << 8)
33 #define AT91_ADC_STARTUP (0x1f << 16)
34 #define AT91_ADC_STARTUP_(x) ((x) << 16)
35 #define AT91_ADC_SHTIM (0xf << 24)
36 #define AT91_ADC_SHTIM_(x) ((x) << 24)
38 #define AT91_ADC_CHER 0x10
39 #define AT91_ADC_CHDR 0x14
40 #define AT91_ADC_CHSR 0x18
41 #define AT91_ADC_CH(n) (1 << (n))
43 #define AT91_ADC_SR 0x1C
44 #define AT91_ADC_EOC(n) (1 << (n))
45 #define AT91_ADC_OVRE(n) (1 << ((n) + 8))
46 #define AT91_ADC_DRDY (1 << 16)
47 #define AT91_ADC_GOVRE (1 << 17)
48 #define AT91_ADC_ENDRX (1 << 18)
49 #define AT91_ADC_RXFUFF (1 << 19)
51 #define AT91_ADC_LCDR 0x20
52 #define AT91_ADC_LDATA (0x3ff)
54 #define AT91_ADC_IER 0x24
55 #define AT91_ADC_IDR 0x28
56 #define AT91_ADC_IMR 0x2C
58 #define AT91_ADC_CHR(n) (0x30 + ((n) * 4))
59 #define AT91_ADC_DATA (0x3ff)