/* Enables or disables the specified DMAy Channelx interrupts.  */
void DMA_ConfigInt(DMA_ChannelType *DMAyChx, uint32_t DMAInt, FunctionalState Cmd)
/* Enables or disables the specified DMAy Channelx interrupts.  */
void DMA_ConfigInt(DMA_ChannelType *DMAyChx, uint32_t DMAInt, FunctionalState Cmd)
{
    assert_param(IS_DMA_ALL_PERIPH(DMAyChx));
    assert_param(IS_DMA_CONFIG_INT(DMAInt));
    assert_param(IS_FUNCTIONAL_STATE(Cmd));
    if (Cmd != DISABLE)
    {
        DMAyChx->CHCFG |= DMAInt;
    }
    else
    {
        DMAyChx->CHCFG &= ~DMAInt;
    }
}