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;
void DMA_Cmd(DMA_Channel_TypeDef *DMAy_Channelx, FunctionalState NewState)
Enables or disables the specified DMAy Channelx.
DMA Init structure definition.
void DMA_SetCurrDataCounter(DMA_Channel_TypeDef *DMAy_Channelx, uint16_t DataNumber)
Sets the number of data units in the current DMAy Channelx transfer.
#define DMA_MemoryDataSize_Byte
void DMA_ClearITPendingBit(uint32_t DMAy_IT)
Clears the DMAy Channelx's interrupt pending bits.
void DMA_DeInit(DMA_Channel_TypeDef *DMAy_Channelx)
Deinitializes the DMAy Channelx registers to their default reset values.
#define DMA1_Channel1_IT_Mask
#define IS_DMA_PERIPHERAL_DATA_SIZE(SIZE)
#define DMA_PeripheralInc_Disable
uint32_t DMA_MemoryDataSize
#define IS_DMA_PERIPHERAL_INC_STATE(STATE)
void assert_param(int val)
#define IS_DMA_MEMORY_INC_STATE(STATE)
uint32_t DMA_PeripheralInc
#define IS_FUNCTIONAL_STATE(STATE)
#define DMA1_Channel6_IT_Mask
#define DMA1_Channel2_IT_Mask
void DMA_ITConfig(DMA_Channel_TypeDef *DMAy_Channelx, uint32_t DMA_IT, FunctionalState NewState)
Enables or disables the specified DMAy Channelx interrupts.
#define DMA2_Channel3_IT_Mask
#define DMA2_Channel4_IT_Mask
uint32_t DMA_PeripheralDataSize
uint32_t DMA_MemoryBaseAddr
void DMA_Init(DMA_Channel_TypeDef *DMAy_Channelx, DMA_InitTypeDef *DMA_InitStruct)
Initializes the DMAy Channelx according to the specified parameters in the DMA_InitStruct.
#define IS_DMA_GET_IT(IT)
#define DMA1_Channel7_IT_Mask
#define IS_DMA_MEMORY_DATA_SIZE(SIZE)
uint32_t DMA_PeripheralBaseAddr
#define DMA_DIR_PeripheralSRC
uint16_t DMA_GetCurrDataCounter(DMA_Channel_TypeDef *DMAy_Channelx)
Returns the number of remaining data units in the current DMAy Channelx transfer. ...
This file contains all the functions prototypes for the RCC firmware library.
#define IS_DMA_BUFFER_SIZE(SIZE)
#define DMA1_Channel4_IT_Mask
#define IS_DMA_M2M_STATE(STATE)
#define IS_DMA_MODE(MODE)
#define IS_DMA_ALL_PERIPH(PERIPH)
#define DMA_PeripheralDataSize_Byte
#define DMA1_Channel5_IT_Mask
#define IS_DMA_CLEAR_FLAG(FLAG)
#define IS_DMA_CONFIG_IT(IT)
#define DMA_MemoryInc_Disable
#define IS_DMA_CLEAR_IT(IT)
This file contains all the functions prototypes for the DMA firmware library.
void DMA_ClearFlag(uint32_t DMAy_FLAG)
Clears the DMAy Channelx's pending flags.
#define DMA1_Channel3_IT_Mask
#define IS_DMA_PRIORITY(PRIORITY)
#define DMA2_Channel5_IT_Mask
#define IS_DMA_GET_FLAG(FLAG)
FlagStatus DMA_GetFlagStatus(uint32_t DMAy_FLAG)
Checks whether the specified DMAy Channelx flag is set or not.
ITStatus DMA_GetITStatus(uint32_t DMAy_IT)
Checks whether the specified DMAy Channelx interrupt has occurred or not.
#define DMA2_Channel2_IT_Mask
void DMA_StructInit(DMA_InitTypeDef *DMA_InitStruct)
Fills each DMA_InitStruct member with its default value.
#define DMA2_Channel1_IT_Mask