/* Enables or disables the specified DMAy Channelx interrupts.  */
void DMA_ITConfig(DMA_Channel_TypeDef *DMAy_Channelx, uint32_t DMA_IT, FunctionalState NewState)
/* Enables or disables the specified DMAy Channelx interrupts.  */
void DMA_ITConfig(DMA_Channel_TypeDef *DMAy_Channelx, uint32_t DMA_IT, FunctionalState NewState)
{
    assert_param(IS_DMA_ALL_PERIPH(DMAy_Channelx));
    assert_param(IS_DMA_CONFIG_IT(DMA_IT));
    assert_param(IS_FUNCTIONAL_STATE(NewState));
    if (NewState != DISABLE)
    {
        DMAy_Channelx->CCR |= DMA_IT;
    }
    else
    {
        DMAy_Channelx->CCR &= ~DMA_IT;
    }
}