/* Read whether the specifie DMA Channel flag is set or not.  */
uint8_t DMA_ReadStatusFlag(DMA_FLAG_T flag)
/* Read whether the specifie DMA Channel flag is set or not.  */
uint8_t DMA_ReadStatusFlag(DMA_FLAG_T flag)
{
    if ((DMA1->INTSTS & flag) != RESET)
    {
        return SET ;
    }
    else
    {
        return RESET ;
    }
}