aboutsummaryrefslogtreecommitdiffstats
path: root/os/hal/ports/STM32/LLD/xWDGv1/wdg_lld.h
diff options
context:
space:
mode:
authorGiovanni Di Sirio <gdisirio@gmail.com>2015-12-03 15:16:07 +0000
committerGiovanni Di Sirio <gdisirio@gmail.com>2015-12-03 15:16:07 +0000
commit6f5d6652694e9dd4c1900601cc0af506bc1627d9 (patch)
tree078fbcc262f9c4454abe3b41a3d9c9466a4826a7 /os/hal/ports/STM32/LLD/xWDGv1/wdg_lld.h
parentc1e7f8c6c794ca40f99cf4b9a42f3787f5131909 (diff)
downloadChibiOS-6f5d6652694e9dd4c1900601cc0af506bc1627d9.tar.gz
ChibiOS-6f5d6652694e9dd4c1900601cc0af506bc1627d9.tar.bz2
ChibiOS-6f5d6652694e9dd4c1900601cc0af506bc1627d9.zip
Updated registries for WDG.
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@8558 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'os/hal/ports/STM32/LLD/xWDGv1/wdg_lld.h')
-rw-r--r--os/hal/ports/STM32/LLD/xWDGv1/wdg_lld.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/os/hal/ports/STM32/LLD/xWDGv1/wdg_lld.h b/os/hal/ports/STM32/LLD/xWDGv1/wdg_lld.h
index ba8accfe5..f4055b24d 100644
--- a/os/hal/ports/STM32/LLD/xWDGv1/wdg_lld.h
+++ b/os/hal/ports/STM32/LLD/xWDGv1/wdg_lld.h
@@ -84,6 +84,10 @@
/* Derived constants and error checks. */
/*===========================================================================*/
+#if STM32_WDG_USE_IWDG && !STM32_HAS_IWDG
+#error "IWDG not present in the selected device"
+#endif
+
#if !STM32_WDG_USE_IWDG
#error "WDG driver activated but no xWDG peripheral assigned"
#endif
@@ -92,7 +96,7 @@
#error "STM32_LSI_ENABLED not defined"
#endif
-#if STM32_LSI_ENABLED == FALSE
+#if (STM32_WDG_USE_IWDG == TRUE) && (STM32_LSI_ENABLED == FALSE)
#error "IWDG requires LSI clock"
#endif