22 #if ( ( DMA_CHAN_COUNT > 0 ) && ( DMA_CHAN_COUNT <= 4 ) )
23 #define DMACTRL_CH_CNT 4
24 #define DMACTRL_ALIGNMENT 128
26 #elif ( ( DMA_CHAN_COUNT > 4 ) && ( DMA_CHAN_COUNT <= 8 ) )
27 #define DMACTRL_CH_CNT 8
28 #define DMACTRL_ALIGNMENT 256
30 #elif ( ( DMA_CHAN_COUNT > 8 ) && ( DMA_CHAN_COUNT <= 12 ) )
31 #define DMACTRL_CH_CNT 16
32 #define DMACTRL_ALIGNMENT 256
35 #error "Unsupported DMA channel count (dmactrl.c)."
40 #if defined (__ICCARM__)
41 #pragma data_alignment=DMACTRL_ALIGNMENT
44 #elif defined (__CC_ARM)
47 #elif defined (__GNUC__)
51 #error Undefined toolkit, need to define alignment
CMSIS Cortex-M Peripheral Access Layer for Silicon Laboratories microcontroller devices.
DMA_DESCRIPTOR_TypeDef dmaControlBlock[DMACTRL_CH_CNT *2]