aboutsummaryrefslogtreecommitdiffstats
path: root/os/hal/templates/ext_lld.c
diff options
context:
space:
mode:
Diffstat (limited to 'os/hal/templates/ext_lld.c')
-rw-r--r--os/hal/templates/ext_lld.c18
1 files changed, 9 insertions, 9 deletions
diff --git a/os/hal/templates/ext_lld.c b/os/hal/templates/ext_lld.c
index ea92610e7..508154e8e 100644
--- a/os/hal/templates/ext_lld.c
+++ b/os/hal/templates/ext_lld.c
@@ -24,7 +24,7 @@
#include "hal.h"
-#if HAL_USE_EXT || defined(__DOXYGEN__)
+#if (HAL_USE_EXT == TRUE) || defined(__DOXYGEN__)
/*===========================================================================*/
/* Driver local definitions. */
@@ -37,7 +37,7 @@
/**
* @brief EXT1 driver identifier.
*/
-#if PLATFORM_EXT_USE_EXT1 || defined(__DOXYGEN__)
+#if (PLATFORM_EXT_USE_EXT1 == TRUE) || defined(__DOXYGEN__)
EXTDriver EXTD1;
#endif
@@ -64,10 +64,10 @@ EXTDriver EXTD1;
*/
void ext_lld_init(void) {
-#if PLATFORM_EXT_USE_EXT1
+#if PLATFORM_EXT_USE_EXT1 == TRUE
/* Driver initialization.*/
extObjectInit(&EXTD1);
-#endif /* PLATFORM_EXT_USE_EXT1 */
+#endif
}
/**
@@ -81,11 +81,11 @@ void ext_lld_start(EXTDriver *extp) {
if (extp->state == EXT_STOP) {
/* Enables the peripheral.*/
-#if PLATFORM_EXT_USE_EXT1
+#if PLATFORM_EXT_USE_EXT1 == TRUE
if (&EXTD1 == extp) {
}
-#endif /* PLATFORM_EXT_USE_EXT1 */
+#endif
}
/* Configures the peripheral.*/
@@ -104,11 +104,11 @@ void ext_lld_stop(EXTDriver *extp) {
/* Resets the peripheral.*/
/* Disables the peripheral.*/
-#if PLATFORM_EXT_USE_EXT1
+#if PLATFORM_EXT_USE_EXT1 == TRUE
if (&EXTD1 == extp) {
}
-#endif /* PLATFORM_EXT_USE_EXT1 */
+#endif
}
}
@@ -142,6 +142,6 @@ void ext_lld_channel_disable(EXTDriver *extp, expchannel_t channel) {
}
-#endif /* HAL_USE_EXT */
+#endif /* HAL_USE_EXT == TRUE */
/** @} */