From b96bb4ea7382eb5aeb8a05a7494a580efebd3952 Mon Sep 17 00:00:00 2001 From: Giovanni Di Sirio Date: Sat, 12 Dec 2015 15:16:43 +0000 Subject: STM32F4 WDG demo added. git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@8584 35acf78f-673a-0410-8e92-d51de3d6d3f4 --- os/hal/ports/STM32/LLD/xWDGv1/wdg_lld.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'os') 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; -- cgit v1.2.3