/* Configures, when the DMAy Streamx is disabled, the flow controller for the next transactions (Peripheral or Memory).  */
void DMA_FlowControllerConfig(DMA_Stream_TypeDef *DMAy_Streamx, uint32_t DMA_FlowCtrl)
/* Configures, when the DMAy Streamx is disabled, the flow controller for the next transactions (Peripheral or Memory).  */
void DMA_FlowControllerConfig(DMA_Stream_TypeDef *DMAy_Streamx, uint32_t DMA_FlowCtrl)
{
  assert_param(IS_DMA_ALL_PERIPH(DMAy_Streamx));
  assert_param(IS_DMA_FLOW_CTRL(DMA_FlowCtrl));
  if(DMA_FlowCtrl != DMA_FlowCtrl_Memory)
  {
    DMAy_Streamx->CR |= (uint32_t)DMA_SxCR_PFCTRL;   
  }
  else
  {
    DMAy_Streamx->CR &= ~(uint32_t)DMA_SxCR_PFCTRL;    
  }
}