48 #define DMA1_Channel1_IT_Mask ((uint32_t)(DMA_ISR_GIF1 | DMA_ISR_TCIF1 | DMA_ISR_HTIF1 | DMA_ISR_TEIF1))
49 #define DMA1_Channel2_IT_Mask ((uint32_t)(DMA_ISR_GIF2 | DMA_ISR_TCIF2 | DMA_ISR_HTIF2 | DMA_ISR_TEIF2))
50 #define DMA1_Channel3_IT_Mask ((uint32_t)(DMA_ISR_GIF3 | DMA_ISR_TCIF3 | DMA_ISR_HTIF3 | DMA_ISR_TEIF3))
51 #define DMA1_Channel4_IT_Mask ((uint32_t)(DMA_ISR_GIF4 | DMA_ISR_TCIF4 | DMA_ISR_HTIF4 | DMA_ISR_TEIF4))
52 #define DMA1_Channel5_IT_Mask ((uint32_t)(DMA_ISR_GIF5 | DMA_ISR_TCIF5 | DMA_ISR_HTIF5 | DMA_ISR_TEIF5))
53 #define DMA1_Channel6_IT_Mask ((uint32_t)(DMA_ISR_GIF6 | DMA_ISR_TCIF6 | DMA_ISR_HTIF6 | DMA_ISR_TEIF6))
54 #define DMA1_Channel7_IT_Mask ((uint32_t)(DMA_ISR_GIF7 | DMA_ISR_TCIF7 | DMA_ISR_HTIF7 | DMA_ISR_TEIF7))
57 #define DMA2_Channel1_IT_Mask ((uint32_t)(DMA_ISR_GIF1 | DMA_ISR_TCIF1 | DMA_ISR_HTIF1 | DMA_ISR_TEIF1))
58 #define DMA2_Channel2_IT_Mask ((uint32_t)(DMA_ISR_GIF2 | DMA_ISR_TCIF2 | DMA_ISR_HTIF2 | DMA_ISR_TEIF2))
59 #define DMA2_Channel3_IT_Mask ((uint32_t)(DMA_ISR_GIF3 | DMA_ISR_TCIF3 | DMA_ISR_HTIF3 | DMA_ISR_TEIF3))
60 #define DMA2_Channel4_IT_Mask ((uint32_t)(DMA_ISR_GIF4 | DMA_ISR_TCIF4 | DMA_ISR_HTIF4 | DMA_ISR_TEIF4))
61 #define DMA2_Channel5_IT_Mask ((uint32_t)(DMA_ISR_GIF5 | DMA_ISR_TCIF5 | DMA_ISR_HTIF5 | DMA_ISR_TEIF5))
64 #define FLAG_Mask ((uint32_t)0x10000000)
67 #define CCR_CLEAR_Mask ((uint32_t)0xFFFF800F)
117 DMAy_Channelx->
CCR = 0;
120 DMAy_Channelx->
CNDTR = 0;
123 DMAy_Channelx->
CPAR = 0;
126 DMAy_Channelx->
CMAR = 0;
220 tmpreg = DMAy_Channelx->
CCR;
238 DMAy_Channelx->
CCR = tmpreg;
335 DMAy_Channelx->
CCR |= DMA_IT;
340 DMAy_Channelx->
CCR &= ~DMA_IT;
360 DMAy_Channelx->
CNDTR = DataNumber;
376 return ((uint16_t)(DMAy_Channelx->
CNDTR));
454 if ((tmpreg & DMAy_FLAG) != (uint32_t)RESET)
532 DMA2->IFCR = DMAy_FLAG;
537 DMA1->IFCR = DMAy_FLAG;
616 if ((tmpreg & DMAy_IT) != (uint32_t)RESET)
693 DMA2->IFCR = DMAy_IT;
698 DMA1->IFCR = DMAy_IT;