20 #define DMA_T_T1_CH0 2
21 #define DMA_T_T1_CH1 3
22 #define DMA_T_T1_CH2 4
23 #define DMA_T_T2_COMP 5
24 #define DMA_T_T2_OVFL 6
25 #define DMA_T_T3_CH0 7
26 #define DMA_T_T3_CH1 8
27 #define DMA_T_T4_CH0 9
28 #define DMA_T_T4_CH1 10
30 #define DMA_T_IOC_0 12
31 #define DMA_T_IOC_1 13
36 #define DMA_T_FLASH 18
37 #define DMA_T_RADIO 19
38 #define DMA_T_ADC_CHALL 20
39 #define DMA_T_ADC_CH11 21
40 #define DMA_T_ADC_CH21 22
41 #define DMA_T_ADC_CH32 23
42 #define DMA_T_ADC_CH42 24
43 #define DMA_T_ADC_CH53 25
44 #define DMA_T_ADC_CH63 26
45 #define DMA_T_ADC_CH74 27
46 #define DMA_T_ADC_CH84 28
47 #define DMA_T_ENC_DW 29
48 #define DMA_T_ENC_UP 30
51 #define DMA_VLEN_LEN (0 << 5)
57 #define DMA_VLEN_N1 (1 << 5)
63 #define DMA_VLEN_N (2 << 5)
68 #define DMA_VLEN_N2 (3 << 5)
73 #define DMA_VLEN_N3 (4 << 5)
74 #define DMA_VLEN_RES1 (5 << 5)
75 #define DMA_VLEN_RES2 (6 << 5)
76 #define DMA_VLEN_LEN2 (7 << 5)
79 #define DMA_SINGLE 0x00
80 #define DMA_BLOCK 0x20
81 #define DMA_RPT_SINGLE 0x40
82 #define DMA_RPT_BLOCK 0x60
85 #define DMA_SRC_INC_NO 0x00
86 #define DMA_SRC_INC_1 0x40
87 #define DMA_SRC_INC_2 0x80
88 #define DMA_SRC_DEC 0xC0
90 #define DMA_DST_INC_NO 0x00
91 #define DMA_DST_INC_1 0x10
92 #define DMA_DST_INC_2 0x20
93 #define DMA_DST_DEC 0x30
96 #define DMA_IRQ_MASK_ENABLE 0x08
97 #define DMA_MODE_7_BIT 0x04
98 #define DMA_PRIO_HIGH 0x02
99 #define DMA_PRIO_ASSURED 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 = DMAARM_ABORT | (1 << c))
137 #define DMA_ABORT_ALL() (DMAARM = 0x9F)
141 void dma_associate_process(
struct process *p, uint8_t c);
142 void dma_reset(uint8_t c);
146 void dma_isr(
void) __interrupt(DMA_VECTOR);
struct dma_config dma_config_t
DMA configuration structure.
void dma_isr(void)
DMA interrupt service routine.
Definitions for TI/Chipcon cc2530, cc2531 and cc2533 SFR registers.
Header file with definitions of bit masks for some cc2530 SFRs
DMA configuration structure.