/* Enables or disables the specified DMA peripheral Clock.  */
void RCC_DMA_ClockCmd(DMA_TypeDef *peripheral, FunctionalState state)
/* Enables or disables the specified DMA peripheral Clock.  */
void RCC_DMA_ClockCmd(DMA_TypeDef *peripheral, FunctionalState state)
{
    if(DMA1 == peripheral) {
        (state) ? (RCC->AHBENR |= RCC_AHBENR_DMA1) : (RCC->AHBENR &= ~RCC_AHBENR_DMA1);
    }
    if(DMA2 == peripheral) {
        (state) ? (RCC->AHBENR |= RCC_AHBENR_DMA2) : (RCC->AHBENR &= ~RCC_AHBENR_DMA2);
    }
}