diff options
Diffstat (limited to 'os/io/include/pal.h')
-rw-r--r-- | os/io/include/pal.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/os/io/include/pal.h b/os/io/include/pal.h index 67bc424b1..2ea625d5e 100644 --- a/os/io/include/pal.h +++ b/os/io/include/pal.h @@ -27,6 +27,8 @@ #ifndef _PAL_H_
#define _PAL_H_
+#if CH_HAL_USE_PAL
+
/**
* @brief Bits in a mode word dedicated as mode selector.
* @details The other bits are not defined and may be used as device-specific
@@ -81,9 +83,7 @@ */
#define PAL_MODE_OUTPUT_OPENDRAIN 7
-#ifndef _PAL_LLD_H_
#include "pal_lld.h"
-#endif
/**
* @brief Logical low state. @@ -464,4 +464,6 @@ extern "C" { #endif /* _PAL_H_ */
+#endif /* CH_HAL_USE_PAL */
+
/** @} */
|