git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@9092 35acf78f-673a-0410-8e92-d51de3d6d3f4

master
Giovanni Di Sirio 2016-03-13 18:46:39 +00:00
parent b07fa4162a
commit c0fef039c8
1 changed files with 16 additions and 0 deletions

View File

@ -297,6 +297,22 @@ void dac_lld_stop(DACDriver *dacp) {
}
}
#endif
#if STM32_DAC_USE_DAC2_CH1
if (&DACD3 == dacp) {
if ((dacp->params->dac->CR & DAC_CR_EN2) == 0U) {
rccDisableDAC2(false);
}
}
#endif
#if STM32_DAC_USE_DAC2_CH2
if (&DACD4 == dacp) {
if ((dacp->params->dac->CR & DAC_CR_EN1) == 0U) {
rccDisableDAC2(false);
}
}
#endif
}
}