aboutsummaryrefslogtreecommitdiffstats
path: root/testhal/STM32
diff options
context:
space:
mode:
authorGiovanni Di Sirio <gdisirio@gmail.com>2015-12-03 14:44:18 +0000
committerGiovanni Di Sirio <gdisirio@gmail.com>2015-12-03 14:44:18 +0000
commitc1e7f8c6c794ca40f99cf4b9a42f3787f5131909 (patch)
treec8478c70cb7a70f03d86f7191218502bbccc1e42 /testhal/STM32
parentc39cfd28fde675337563eb87417458aa28a83db4 (diff)
downloadChibiOS-c1e7f8c6c794ca40f99cf4b9a42f3787f5131909.tar.gz
ChibiOS-c1e7f8c6c794ca40f99cf4b9a42f3787f5131909.tar.bz2
ChibiOS-c1e7f8c6c794ca40f99cf4b9a42f3787f5131909.zip
WDG driver works, update of all registries, halconf.h and mcuconf.h to be performed.
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@8557 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'testhal/STM32')
-rw-r--r--testhal/STM32/STM32F3xx/WDG/Makefile2
-rw-r--r--testhal/STM32/STM32F3xx/WDG/main.c4
2 files changed, 3 insertions, 3 deletions
diff --git a/testhal/STM32/STM32F3xx/WDG/Makefile b/testhal/STM32/STM32F3xx/WDG/Makefile
index c01cfa725..fe9e06861 100644
--- a/testhal/STM32/STM32F3xx/WDG/Makefile
+++ b/testhal/STM32/STM32F3xx/WDG/Makefile
@@ -5,7 +5,7 @@
# Compiler options here.
ifeq ($(USE_OPT),)
- USE_OPT = -O2 -ggdb -fomit-frame-pointer -falign-functions=16
+ USE_OPT = -O0 -ggdb -fomit-frame-pointer -falign-functions=16
endif
# C specific options here (added to USE_OPT).
diff --git a/testhal/STM32/STM32F3xx/WDG/main.c b/testhal/STM32/STM32F3xx/WDG/main.c
index aeec0e35a..5c9cb11a5 100644
--- a/testhal/STM32/STM32F3xx/WDG/main.c
+++ b/testhal/STM32/STM32F3xx/WDG/main.c
@@ -18,10 +18,10 @@
#include "hal.h"
/*
- * Watchdog deadline set to one second (LSI=40000 / 4 / 1000).
+ * Watchdog deadline set to more than one second (LSI=40000 / (64 * 1000)).
*/
static const WDGConfig wdgcfg = {
- STM32_IWDG_PR_4,
+ STM32_IWDG_PR_64,
STM32_IWDG_RL(1000),
STM32_IWDG_WIN_DISABLED
};