/* Deinitializes the DAC peripheral registers to their default reset values.  */
void DAC_DeInit(DAC_TypeDef *DACx)
/* Deinitializes the DAC peripheral registers to their default reset values.  */
void DAC_DeInit(DAC_TypeDef *DACx)
{
  assert_param(IS_DAC_ALL_PERIPH(DACx));
  if (DACx == DAC1)
  {
    RCC_APB1PeriphResetCmd(RCC_APB1Periph_DAC1, ENABLE);
    RCC_APB1PeriphResetCmd(RCC_APB1Periph_DAC1, DISABLE);
  }
  else
  {
    RCC_APB1PeriphResetCmd(RCC_APB1Periph_DAC2, ENABLE);
    RCC_APB1PeriphResetCmd(RCC_APB1Periph_DAC2, DISABLE);
  }
}