aboutsummaryrefslogtreecommitdiffstats
path: root/os/hal/ports/STM32/LLD/DACv1/hal_dac_lld.c
diff options
context:
space:
mode:
Diffstat (limited to 'os/hal/ports/STM32/LLD/DACv1/hal_dac_lld.c')
-rw-r--r--os/hal/ports/STM32/LLD/DACv1/hal_dac_lld.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/os/hal/ports/STM32/LLD/DACv1/hal_dac_lld.c b/os/hal/ports/STM32/LLD/DACv1/hal_dac_lld.c
index e63af050f..57c041064 100644
--- a/os/hal/ports/STM32/LLD/DACv1/hal_dac_lld.c
+++ b/os/hal/ports/STM32/LLD/DACv1/hal_dac_lld.c
@@ -249,6 +249,8 @@ void dac_lld_start(DACDriver *dacp) {
channel = 1;
}
#endif
+ /* Copying user configuration into cr */
+ dacp->params->dac->CR = dacp->config->cr;
/* Enabling DAC in SW triggering mode initially, initializing data to
zero.*/