/* Remaps the DMA Channel to the specific peripheral (ADC or TIM4)  */
void SYSCFG_REMAPDMAChannelConfig(REMAP_DMAChannel_TypeDef REMAP_DMAChannel)
/* Remaps the DMA Channel to the specific peripheral (ADC or TIM4)  */
void SYSCFG_REMAPDMAChannelConfig(REMAP_DMAChannel_TypeDef REMAP_DMAChannel)
{
  assert_param(IS_REMAP_DMACHANNEL(REMAP_DMAChannel));
  if ((REMAP_DMAChannel & 0xF0) != RESET)
  {
    SYSCFG->RMPCR1 &= (uint8_t) (~SYSCFG_RMPCR1_TIM4DMA_REMAP);
  }
  else
  {
    SYSCFG->RMPCR1 &= (uint8_t) (~SYSCFG_RMPCR1_ADC1DMA_REMAP);
  }
  SYSCFG->RMPCR1 |= (uint8_t) ((uint8_t)0x0F & REMAP_DMAChannel);
}