19 #define DMA_T_T1_CH0 2
20 #define DMA_T_T1_CH1 3
21 #define DMA_T_T1_CH2 4
22 #define DMA_T_T2_COMP 5
23 #define DMA_T_T2_OVFL 6
24 #define DMA_T_T3_CH0 7
25 #define DMA_T_T3_CH1 8
26 #define DMA_T_T4_CH0 9
27 #define DMA_T_T4_CH1 10
29 #define DMA_T_IOC_0 12
30 #define DMA_T_IOC_1 13
35 #define DMA_T_FLASH 18
36 #define DMA_T_RADIO 19
37 #define DMA_T_ADC_CHALL 20
38 #define DMA_T_ADC_CH11 21
39 #define DMA_T_ADC_CH21 22
40 #define DMA_T_ADC_CH32 23
41 #define DMA_T_ADC_CH42 24
42 #define DMA_T_ADC_CH53 25
43 #define DMA_T_ADC_CH63 26
44 #define DMA_T_ADC_CH74 27
45 #define DMA_T_ADC_CH84 28
46 #define DMA_T_ENC_DW 29
47 #define DMA_T_ENC_UP 30
50 #define DMA_VLEN_LEN (0 << 5)
56 #define DMA_VLEN_N1 (1 << 5)
62 #define DMA_VLEN_N (2 << 5)
67 #define DMA_VLEN_N2 (3 << 5)
72 #define DMA_VLEN_N3 (4 << 5)
73 #define DMA_VLEN_RES1 (5 << 5)
74 #define DMA_VLEN_RES2 (6 << 5)
75 #define DMA_VLEN_LEN2 (7 << 5)
78 #define DMA_SINGLE 0x00
79 #define DMA_BLOCK 0x20
80 #define DMA_RPT_SINGLE 0x40
81 #define DMA_RPT_BLOCK 0x60
84 #define DMA_SRC_INC_NO 0x00
85 #define DMA_SRC_INC_1 0x40
86 #define DMA_SRC_INC_2 0x80
87 #define DMA_SRC_DEC 0xC0
89 #define DMA_DST_INC_NO 0x00
90 #define DMA_DST_INC_1 0x10
91 #define DMA_DST_INC_2 0x20
92 #define DMA_DST_DEC 0x30
95 #define DMA_IRQ_MASK_ENABLE 0x08
96 #define DMA_MODE_7_BIT 0x04
97 #define DMA_PRIO_HIGHEST 0x03
98 #define DMA_PRIO_HIGH 0x02
99 #define DMA_PRIO_GUARANTEED 0x01
100 #define DMA_PRIO_LOW 0x00
116 #define DMA_ON DMA_CONF_ON
123 #define DMA_CHANNEL_COUNT 2
128 #define DMA_ARM(c) (DMAARM |= (1 << c))
129 #define DMA_TRIGGER(c) (DMAREQ |= (1 << c))
134 #define DMA_STATUS(c) (DMAIRQ &(1 << c))
136 #define DMA_ABORT(c) (DMAARM = ABORT | (1 << c))
137 #define DMA_ABORT_ALL() (DMAARM = 0x9F)
141 void dma_associate_process(
struct process *p, uint8_t c);
145 void dma_ISR(
void) __interrupt(DMA_VECTOR);
CC2430 registers header file for CC2430.
struct dma_config dma_config_t
DMA configuration structure.
void dma_ISR(void)
DMA interrupt service routine.
DMA configuration structure.