diff options
Diffstat (limited to 'os/hal')
-rw-r--r-- | os/hal/platforms/MSP430/pal_lld.c | 4 | ||||
-rw-r--r-- | os/hal/platforms/MSP430/pal_lld.h | 4 | ||||
-rw-r--r-- | os/hal/platforms/MSP430/serial_lld.c | 4 | ||||
-rw-r--r-- | os/hal/platforms/MSP430/serial_lld.h | 4 |
4 files changed, 15 insertions, 1 deletions
diff --git a/os/hal/platforms/MSP430/pal_lld.c b/os/hal/platforms/MSP430/pal_lld.c index 05d94034c..fe8acadcd 100644 --- a/os/hal/platforms/MSP430/pal_lld.c +++ b/os/hal/platforms/MSP430/pal_lld.c @@ -27,6 +27,8 @@ #include "ch.h"
#include "hal.h"
+#if CH_HAL_USE_PAL || defined(__DOXYGEN__)
+
/**
* @brief MSP430 I/O ports configuration.
*
@@ -112,4 +114,6 @@ void _pal_lld_setgroupmode(ioportid_t port, }
}
+#endif /* CH_HAL_USE_PAL */
+
/** @} */
diff --git a/os/hal/platforms/MSP430/pal_lld.h b/os/hal/platforms/MSP430/pal_lld.h index 51a44ed96..31002e0d6 100644 --- a/os/hal/platforms/MSP430/pal_lld.h +++ b/os/hal/platforms/MSP430/pal_lld.h @@ -27,7 +27,7 @@ #ifndef _PAL_LLD_H_
#define _PAL_LLD_H_
-#include <msp430x16x.h>
+#if CH_HAL_USE_PAL || defined(__DOXYGEN__)
/*===========================================================================*/
/* Unsupported modes and specific modes */
@@ -292,4 +292,6 @@ extern "C" { #endif /* _PAL_LLD_H_ */
+#endif /* CH_HAL_USE_PAL */
+
/** @} */
diff --git a/os/hal/platforms/MSP430/serial_lld.c b/os/hal/platforms/MSP430/serial_lld.c index e718ce74b..a69944bf7 100644 --- a/os/hal/platforms/MSP430/serial_lld.c +++ b/os/hal/platforms/MSP430/serial_lld.c @@ -29,6 +29,8 @@ #include "ch.h"
#include "hal.h"
+#if CH_HAL_USE_SERIAL || defined(__DOXYGEN__)
+
#if USE_MSP430_USART0 || defined(__DOXYGEN__)
/** @brief USART0 serial driver identifier.*/
SerialDriver SD1;
@@ -287,4 +289,6 @@ void sd_lld_stop(SerialDriver *sdp) { #endif
}
+#endif /* CH_HAL_USE_SERIAL */
+
/** @} */
diff --git a/os/hal/platforms/MSP430/serial_lld.h b/os/hal/platforms/MSP430/serial_lld.h index 17a6d038f..e872ee240 100644 --- a/os/hal/platforms/MSP430/serial_lld.h +++ b/os/hal/platforms/MSP430/serial_lld.h @@ -27,6 +27,8 @@ #ifndef _SERIAL_LLD_H_
#define _SERIAL_LLD_H_
+#if CH_HAL_USE_SERIAL || defined(__DOXYGEN__)
+
/*===========================================================================*/
/* Driver pre-compile time settings. */
/*===========================================================================*/
@@ -154,6 +156,8 @@ extern "C" { #endif
/** @endcond*/
+#endif /* CH_HAL_USE_SERIAL */
+
#endif /* _SERIAL_LLD_H_ */
/** @} */
|