/* Checks whether the specified DMAy Channelx flag is set or not.  */
FlagStatus DMA_GetFlagStatus(uint32_t DMAy_FLAG)
/* Checks whether the specified DMAy Channelx flag is set or not.  */
FlagStatus DMA_GetFlagStatus(uint32_t DMAy_FLAG)
{
  FlagStatus bitstatus = RESET;
  uint32_t tmpreg = 0;
  assert_param(IS_DMA_GET_FLAG(DMAy_FLAG));
  if ((DMAy_FLAG & FLAG_Mask) != (uint32_t)RESET)
  {
        ;
  }
  else
  {
    tmpreg = DMA1->ISR ;
  }
  if ((tmpreg & DMAy_FLAG) != (uint32_t)RESET)
  {
    bitstatus = SET;
  }
  else
  {
    bitstatus = RESET;
  }
  return  bitstatus;
}