aboutsummaryrefslogtreecommitdiffstats
path: root/os/hal/ports/STM32/LLD/xWDGv1/wdg_lld.c
diff options
context:
space:
mode:
Diffstat (limited to 'os/hal/ports/STM32/LLD/xWDGv1/wdg_lld.c')
-rw-r--r--os/hal/ports/STM32/LLD/xWDGv1/wdg_lld.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/os/hal/ports/STM32/LLD/xWDGv1/wdg_lld.c b/os/hal/ports/STM32/LLD/xWDGv1/wdg_lld.c
index 94f2c8569..6f3ce04ff 100644
--- a/os/hal/ports/STM32/LLD/xWDGv1/wdg_lld.c
+++ b/os/hal/ports/STM32/LLD/xWDGv1/wdg_lld.c
@@ -99,10 +99,10 @@ void wdg_lld_start(WDGDriver *wdgp) {
wdgp->wdg->KR = KR_KEY_WRITE;
/* Write configuration.*/
- wdgp->wdg->PR = wdgp->config->pr;
- wdgp->wdg->RLR = wdgp->config->rlr;
while (wdgp->wdg->SR != 0)
;
+ wdgp->wdg->PR = wdgp->config->pr;
+ wdgp->wdg->RLR = wdgp->config->rlr;
/* Start operations.*/
wdgp->wdg->KR = KR_KEY_RELOAD;