/* Checks whether the specified DMA Channeln interrupt has occurred or not.  */
ITStatus DMA_GetITStatus(DMA_Interrupts_TypeDef it)
/* Checks whether the specified DMA Channeln interrupt has occurred or not.  */
ITStatus DMA_GetITStatus(DMA_Interrupts_TypeDef it)
{
    if(it >= DMA2_IT_GL1 ) {
        return (DMA2->ISR & it) ? SET : RESET;
    }
    return (DMA1->ISR & it) ? SET : RESET;
}