63 #ifndef BSP430_PERIPH_DMA_H
64 #define BSP430_PERIPH_DMA_H
76 #define BSP430_MODULE_DMAX (defined(__MSP430_HAS_DMAX_3__) \
77 || defined(__MSP430_HAS_DMAX_6__))
88 #define BSP430_MODULE_DMA (defined(__MSP430_HAS_DMA_1__) \
89 || defined(__MSP430_HAS_DMA_6__) \
90 || (BSP430_MODULE_DMAX - 0))
93 #if defined(BSP430_DOXYGEN) || (BSP430_MODULE_DMA - 0)
101 #define BSP430_DMA_HAL_HPL_VARIANT_DMA 1
107 #define BSP430_DMA_HAL_HPL_VARIANT_DMAX 2
112 #if defined(__MSP430_HAS_DMA_1__)
113 #define BSP430_DMA_NUM_CHANNELS 1
114 #elif defined(BSP430_DOXYGEN) || defined(__MSP430_HAS_DMA_3__) || defined(__MSP430_HAS_DMAX_3__)
115 #define BSP430_DMA_NUM_CHANNELS 3
116 #elif defined(__MSP430_HAS_DMAX_6__)
117 #define BSP430_DMA_NUM_CHANNELS 6
120 #if defined(BSP430_DOXYGEN) || (BSP430_MODULE_DMAX - 0)
130 unsigned int _reserved_x0c;
131 unsigned int _reserved_x0e;
134 #if (BSP430_CORE_FAMILY_IS_5XX - 0)
142 unsigned int _reserved_x0a;
143 unsigned int _reserved_x0c;
153 unsigned int _reserved_skip[(0x1D0 - 0x128) /
sizeof(
unsigned int)];
172 unsigned int _reserved_skip[(0x1E0 - 0x126) /
sizeof(
unsigned int)];
181 #if defined(BSP430_DOXYGEN) || defined(__MSP430_HAS_DMA_1__) || defined(__MSP430_HAS_DMA_3__)
182 #define BSP430_PERIPH_DMA_BASEADDRESS_ 0x0122
183 #elif defined(__MSP430_HAS_DMAX_3__)
184 #if defined(__MSP430_BASEADDRESS_DMAX_3__)
185 #define BSP430_PERIPH_DMA_BASEADDRESS_ __MSP430_BASEADDRESS_DMAX_3__
187 #define BSP430_PERIPH_DMA_BASEADDRESS_ 0x0122
189 #elif defined(__MSP430_HAS_DMAX_6__)
190 #define BSP430_PERIPH_DMA_BASEADDRESS_ __MSP430_BASEADDRESS_DMAX_6__
227 #ifndef configBSP430_HAL_DMA
228 #define configBSP430_HAL_DMA 0
232 #if (configBSP430_HAL_DMA - 0)
244 #if defined(BSP430_DOXYGEN) || (configBSP430_HAL_DMA - 0)
245 #define BSP430_HAL_DMA (&xBSP430hal_DMA_)
265 #ifndef configBSP430_HPL_DMA
266 #define configBSP430_HPL_DMA (configBSP430_HAL_DMA - 0)
269 #if (configBSP430_HAL_DMA - 0) && ! (configBSP430_HPL_DMA - 0)
270 #warning configBSP430_HAL_DMA requested without configBSP430_HPL_DMA
279 #if defined(BSP430_DOXYGEN) || (configBSP430_HPL_DMA - 0)
280 #define BSP430_PERIPH_DMA ((tBSP430periphHandle)(BSP430_PERIPH_DMA_BASEADDRESS_))
295 #if defined(BSP430_DOXYGEN) || (configBSP430_HPL_DMA - 0)
296 #define BSP430_HPL_DMA ((volatile sBSP430hplDMA *)BSP430_PERIPH_DMA)
319 #ifndef configBSP430_HAL_DMA_ISR
320 #define configBSP430_HAL_DMA_ISR (configBSP430_HAL_DMA - 0)
323 #if (configBSP430_HAL_DMA_ISR - 0) && ! (configBSP430_HAL_DMA - 0)
324 #warning configBSP430_HAL_DMA_ISR requested without configBSP430_HAL_DMA
struct sBSP430halDMA * hBSP430halDMA
Definition: dma.h:210
unsigned int sz
Definition: dma.h:129
unsigned int ctl
Definition: dma.h:126
volatile sBSP430hplDMA *const hpl
Definition: dma.h:203
const struct sBSP430halISRIndexedChainNode *volatile *const ch_cbchain_ni
Definition: dma.h:206
sBSP430hplDMAchannel ch[BSP430_DMA_NUM_CHANNELS]
Definition: dma.h:154
struct sBSP430hplDMAchannel sBSP430hplDMAchannel
unsigned int ctl1
Definition: dma.h:151
struct sBSP430hplDMA sBSP430hplDMA
struct sBSP430halDMA sBSP430halDMA
Generic peripheral support for MSP430 MCUs.
unsigned long sa
Definition: dma.h:127
unsigned int ctl0
Definition: dma.h:150
#define BSP430_DMA_NUM_CHANNELS
Definition: dma.h:115
unsigned long da
Definition: dma.h:128
sBSP430hplHALStatePrefix hal_state
Definition: dma.h:200
unsigned int iv
Definition: dma.h:152