aboutsummaryrefslogtreecommitdiffstats
path: root/os/hal/templates/icu_lld.c
diff options
context:
space:
mode:
authorGiovanni Di Sirio <gdisirio@gmail.com>2015-03-09 10:48:08 +0000
committerGiovanni Di Sirio <gdisirio@gmail.com>2015-03-09 10:48:08 +0000
commitb7985b957d0c259e9869763199c5cbf8ae9f4709 (patch)
treecb1cff3966c06b52cbba51cceb4b659dd9f25562 /os/hal/templates/icu_lld.c
parentce7f7103df5f634f7b57d90e115c5824adcb68a0 (diff)
downloadChibiOS-b7985b957d0c259e9869763199c5cbf8ae9f4709.tar.gz
ChibiOS-b7985b957d0c259e9869763199c5cbf8ae9f4709.tar.bz2
ChibiOS-b7985b957d0c259e9869763199c5cbf8ae9f4709.zip
MISRA pass on low level device drivers templates.
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@7739 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'os/hal/templates/icu_lld.c')
-rw-r--r--os/hal/templates/icu_lld.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/os/hal/templates/icu_lld.c b/os/hal/templates/icu_lld.c
index a35d48bf9..195d71620 100644
--- a/os/hal/templates/icu_lld.c
+++ b/os/hal/templates/icu_lld.c
@@ -24,7 +24,7 @@
#include "hal.h"
-#if HAL_USE_ICU || defined(__DOXYGEN__)
+#if (HAL_USE_ICU == TRUE) || defined(__DOXYGEN__)
/*===========================================================================*/
/* Driver local definitions. */
@@ -38,7 +38,7 @@
* @brief ICUD1 driver identifier.
* @note The driver ICUD1 allocates the complex timer TIM1 when enabled.
*/
-#if PLATFORM_ICU_USE_ICU1 || defined(__DOXYGEN__)
+#if (PLATFORM_ICU_USE_ICU1 == TRUE) || defined(__DOXYGEN__)
ICUDriver ICUD1;
#endif
@@ -65,7 +65,7 @@ ICUDriver ICUD1;
*/
void icu_lld_init(void) {
-#if PLATFORM_ICU_USE_ICU1
+#if PLATFORM_ICU_USE_ICU1 == TRUE
/* Driver initialization.*/
icuObjectInit(&ICUD1);
#endif
@@ -82,7 +82,7 @@ void icu_lld_start(ICUDriver *icup) {
if (icup->state == ICU_STOP) {
/* Clock activation and timer reset.*/
-#if PLATFORM_ICU_USE_ICU1
+#if PLATFORM_ICU_USE_ICU1 == TRUE
if (&ICUD1 == icup) {
}
@@ -101,7 +101,7 @@ void icu_lld_stop(ICUDriver *icup) {
if (icup->state == ICU_READY) {
/* Clock deactivation.*/
-#if PLATFORM_ICU_USE_ICU1
+#if PLATFORM_ICU_USE_ICU1 == TRUE
if (&ICUD1 == icup) {
}
@@ -180,6 +180,6 @@ void icu_lld_disable_notifications(ICUDriver *icup) {
(void)icup;
}
-#endif /* HAL_USE_ICU */
+#endif /* HAL_USE_ICU == TRUE */
/** @} */