aboutsummaryrefslogtreecommitdiffstats
path: root/os/hal/ports
diff options
context:
space:
mode:
authorGiovanni Di Sirio <gdisirio@gmail.com>2015-12-12 15:16:43 +0000
committerGiovanni Di Sirio <gdisirio@gmail.com>2015-12-12 15:16:43 +0000
commitb96bb4ea7382eb5aeb8a05a7494a580efebd3952 (patch)
treea2193ebbb4f480c628a070f5e83e966b42867c63 /os/hal/ports
parent78fa3a2203129637482a2580bb5948d01798f9bc (diff)
downloadChibiOS-b96bb4ea7382eb5aeb8a05a7494a580efebd3952.tar.gz
ChibiOS-b96bb4ea7382eb5aeb8a05a7494a580efebd3952.tar.bz2
ChibiOS-b96bb4ea7382eb5aeb8a05a7494a580efebd3952.zip
STM32F4 WDG demo added.
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@8584 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'os/hal/ports')
-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;