aboutsummaryrefslogtreecommitdiffstats
path: root/os/hal/templates/ext_lld.h
diff options
context:
space:
mode:
Diffstat (limited to 'os/hal/templates/ext_lld.h')
-rw-r--r--os/hal/templates/ext_lld.h7
1 files changed, 4 insertions, 3 deletions
diff --git a/os/hal/templates/ext_lld.h b/os/hal/templates/ext_lld.h
index f31f347ae..6e3b0f2f9 100644
--- a/os/hal/templates/ext_lld.h
+++ b/os/hal/templates/ext_lld.h
@@ -25,7 +25,7 @@
#ifndef _EXT_LLD_H_
#define _EXT_LLD_H_
-#if HAL_USE_EXT || defined(__DOXYGEN__)
+#if (HAL_USE_EXT == TRUE) || defined(__DOXYGEN__)
/*===========================================================================*/
/* Driver constants. */
@@ -47,6 +47,7 @@
/**
* @brief EXT driver enable switch.
* @details If set to @p TRUE the support for EXT1 is included.
+ * @note The default is @p FALSE.
*/
#if !defined(PLATFORM_EXT_USE_EXT1) || defined(__DOXYGEN__)
#define PLATFORM_EXT_USE_EXT1 FALSE
@@ -126,7 +127,7 @@ struct EXTDriver {
/* External declarations. */
/*===========================================================================*/
-#if PLATFORM_EXT_USE_EXT1 && !defined(__DOXYGEN__)
+#if (PLATFORM_EXT_USE_EXT1 == TRUE) && !defined(__DOXYGEN__)
extern EXTDriver EXTD1;
#endif
@@ -142,7 +143,7 @@ extern "C" {
}
#endif
-#endif /* HAL_USE_EXT */
+#endif /* HAL_USE_EXT == TRUE */
#endif /* _EXT_LLD_H_ */