diff options
author | Giovanni Di Sirio <gdisirio@gmail.com> | 2016-03-13 18:46:39 +0000 |
---|---|---|
committer | Giovanni Di Sirio <gdisirio@gmail.com> | 2016-03-13 18:46:39 +0000 |
commit | c0fef039c8720ec859737b931cb6e5a15b12f90d (patch) | |
tree | 35a58ca7e650c0fe9d3fa18e74e80f9f48694cef /os/hal/ports | |
parent | b07fa4162a021c9adb29772ddb5b20a95d6a8e54 (diff) | |
download | ChibiOS-c0fef039c8720ec859737b931cb6e5a15b12f90d.tar.gz ChibiOS-c0fef039c8720ec859737b931cb6e5a15b12f90d.tar.bz2 ChibiOS-c0fef039c8720ec859737b931cb6e5a15b12f90d.zip |
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@9092 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'os/hal/ports')
-rw-r--r-- | os/hal/ports/STM32/LLD/DACv1/dac_lld.c | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/os/hal/ports/STM32/LLD/DACv1/dac_lld.c b/os/hal/ports/STM32/LLD/DACv1/dac_lld.c index 2a2f5ffd4..3cea46dc7 100644 --- a/os/hal/ports/STM32/LLD/DACv1/dac_lld.c +++ b/os/hal/ports/STM32/LLD/DACv1/dac_lld.c @@ -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
}
}
|