aboutsummaryrefslogtreecommitdiffstats
path: root/os/hal/platforms/MSP430
diff options
context:
space:
mode:
authorgdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4>2009-12-08 21:24:26 +0000
committergdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4>2009-12-08 21:24:26 +0000
commite3109b783f9d498661d56a557ddbfd5674669d03 (patch)
treee60c1e6066b27b906632d431845a597fb92b4b33 /os/hal/platforms/MSP430
parentc4e1cab1c95134af07955b0f02e5b9502a94bb8c (diff)
downloadChibiOS-e3109b783f9d498661d56a557ddbfd5674669d03.tar.gz
ChibiOS-e3109b783f9d498661d56a557ddbfd5674669d03.tar.bz2
ChibiOS-e3109b783f9d498661d56a557ddbfd5674669d03.zip
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@1403 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'os/hal/platforms/MSP430')
-rw-r--r--os/hal/platforms/MSP430/pal_lld.c4
-rw-r--r--os/hal/platforms/MSP430/pal_lld.h4
-rw-r--r--os/hal/platforms/MSP430/serial_lld.c4
-rw-r--r--os/hal/platforms/MSP430/serial_lld.h4
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_ */
/** @} */