ï‚· void DMA_ClearFlag(uint32_t DMA_FLAG);
Interrupt Mode
Each DMA channel can be managed through 4 Interrupts:
ï‚· Interrupt Source
a. DMA_IT_TC: specifies the interrupt source for the Transfer Complete event.
b. DMA_IT_HT: specifies the interrupt source for the Half-transfer Complete event.
c. DMA_IT_TE: specifies the interrupt source for the transfer errors event.
d. DMA_IT_GL: to indicate that at least one of the interrupts described above
occurred. Clearing DMA_IT_GL interrupt results in clearing all other interrupts of
the same channel (DMA_IT_TCx, DMA_IT_HT and DMA_IT_TE).
In this Mode it is advised to use the following functions:
ï‚· void DMA_ITConfig(DMA_Channel_TypeDef* DMAy_Channelx, uint32_t DMA_IT,
FunctionalState NewState);
ï‚· ITStatus DMA_GetITStatus(uint32_t DMA_IT);
ï‚· void DMA_ClearITPendingBit(uint32_t DMA_IT);
ï‚· DMA_ITConfig()
ï‚· DMA_GetFlagStatus()
ï‚· DMA_ClearFlag()
ï‚· DMA_GetITStatus()
ï‚· DMA_ClearITPendingBit()
9.2.5 Initialization and Configuration functions
9.2.5.1 DMA_DeInit
void DMA_DeInit ( DMA_Channel_TypeDef * DMAy_Channelx)
Deinitializes the DMAy Channelx registers to their default reset
values.
ï‚· DMAy_Channelx : where y can be 1 or 2 to select the DMA
and x can be 1 to 7 for DMA1 and 1 to 5 for DMA2 to select
the DMA Channel.
9.2.5.2 DMA_Init
void DMA_Init ( DMA_Channel_TypeDef * DMAy_Channelx,
DMA_InitTypeDef * DMA_InitStruct)
Initializes the DMAy Channelx according to the specified