aboutsummaryrefslogtreecommitdiffstats
path: root/os/hal/ports/STM32/LLD/xWDGv1
diff options
context:
space:
mode:
authorGiovanni Di Sirio <gdisirio@gmail.com>2016-01-04 15:11:17 +0000
committerGiovanni Di Sirio <gdisirio@gmail.com>2016-01-04 15:11:17 +0000
commit788175c0883ca8b9aa5c46918c98cd906efdeb9b (patch)
tree7cc13ab262a83f3c2140e10231e4694c4e565ea1 /os/hal/ports/STM32/LLD/xWDGv1
parent5c2d43e6912254b2a51c01e6bb6e285d1dfc40ca (diff)
downloadChibiOS-788175c0883ca8b9aa5c46918c98cd906efdeb9b.tar.gz
ChibiOS-788175c0883ca8b9aa5c46918c98cd906efdeb9b.tar.bz2
ChibiOS-788175c0883ca8b9aa5c46918c98cd906efdeb9b.zip
HAL MISRA-related fixes.
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@8687 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'os/hal/ports/STM32/LLD/xWDGv1')
-rw-r--r--os/hal/ports/STM32/LLD/xWDGv1/wdg_lld.c4
-rw-r--r--os/hal/ports/STM32/LLD/xWDGv1/wdg_lld.h4
2 files changed, 4 insertions, 4 deletions
diff --git a/os/hal/ports/STM32/LLD/xWDGv1/wdg_lld.c b/os/hal/ports/STM32/LLD/xWDGv1/wdg_lld.c
index d3ff1600d..50b5a95de 100644
--- a/os/hal/ports/STM32/LLD/xWDGv1/wdg_lld.c
+++ b/os/hal/ports/STM32/LLD/xWDGv1/wdg_lld.c
@@ -24,7 +24,7 @@
#include "hal.h"
-#if HAL_USE_WDG || defined(__DOXYGEN__)
+#if (HAL_USE_WDG == TRUE) || defined(__DOXYGEN__)
/*===========================================================================*/
/* Driver local definitions. */
@@ -135,6 +135,6 @@ void wdg_lld_reset(WDGDriver * wdgp) {
wdgp->wdg->KR = KR_KEY_RELOAD;
}
-#endif /* HAL_USE_WDG */
+#endif /* HAL_USE_WDG == TRUE */
/** @} */
diff --git a/os/hal/ports/STM32/LLD/xWDGv1/wdg_lld.h b/os/hal/ports/STM32/LLD/xWDGv1/wdg_lld.h
index 8c108b5dd..8d2786f63 100644
--- a/os/hal/ports/STM32/LLD/xWDGv1/wdg_lld.h
+++ b/os/hal/ports/STM32/LLD/xWDGv1/wdg_lld.h
@@ -25,7 +25,7 @@
#ifndef _WDG_LLD_H_
#define _WDG_LLD_H_
-#if HAL_USE_WDG || defined(__DOXYGEN__)
+#if (HAL_USE_WDG == TRUE) || defined(__DOXYGEN__)
/*===========================================================================*/
/* Driver constants. */
@@ -176,7 +176,7 @@ extern "C" {
}
#endif
-#endif /* HAL_USE_WDG */
+#endif /* HAL_USE_WDG == TRUE */
#endif /* _WDG_LLD_H_ */