diff options
author | gdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4> | 2009-12-08 10:36:29 +0000 |
---|---|---|
committer | gdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4> | 2009-12-08 10:36:29 +0000 |
commit | 93fc8b57778f698cbe7e0e202e33b5d56ce09039 (patch) | |
tree | 0bbf40ba4c83b36dc81c3a9d47a32624d9005092 /os/hal | |
parent | 4682a4476ec53884628b1a2b61457938f5914038 (diff) | |
download | ChibiOS-93fc8b57778f698cbe7e0e202e33b5d56ce09039.tar.gz ChibiOS-93fc8b57778f698cbe7e0e202e33b5d56ce09039.tar.bz2 ChibiOS-93fc8b57778f698cbe7e0e202e33b5d56ce09039.zip |
HAL implemented for LPC214x.
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@1392 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'os/hal')
-rw-r--r-- | os/hal/platforms/AT91SAM7/serial_lld.c | 2 | ||||
-rw-r--r-- | os/hal/platforms/AT91SAM7/serial_lld.h | 2 | ||||
-rw-r--r-- | os/hal/platforms/LPC214x/pal_lld.c | 4 | ||||
-rw-r--r-- | os/hal/platforms/LPC214x/pal_lld.h | 4 | ||||
-rw-r--r-- | os/hal/platforms/LPC214x/serial_lld.c | 4 | ||||
-rw-r--r-- | os/hal/platforms/LPC214x/serial_lld.h | 4 |
6 files changed, 18 insertions, 2 deletions
diff --git a/os/hal/platforms/AT91SAM7/serial_lld.c b/os/hal/platforms/AT91SAM7/serial_lld.c index 1304aadb0..1673fb7e2 100644 --- a/os/hal/platforms/AT91SAM7/serial_lld.c +++ b/os/hal/platforms/AT91SAM7/serial_lld.c @@ -294,6 +294,6 @@ void sd_lld_stop(SerialDriver *sdp) { #endif
}
-#endif /* CH_HAL_USE_SPI */
+#endif /* CH_HAL_USE_SERIAL */
/** @} */
diff --git a/os/hal/platforms/AT91SAM7/serial_lld.h b/os/hal/platforms/AT91SAM7/serial_lld.h index 9dc4bf8bf..1e6216b29 100644 --- a/os/hal/platforms/AT91SAM7/serial_lld.h +++ b/os/hal/platforms/AT91SAM7/serial_lld.h @@ -154,7 +154,7 @@ extern "C" { #endif
/** @endcond*/
-#endif /* CH_HAL_USE_SPI */
+#endif /* CH_HAL_USE_SERIAL */
#endif /* _SERIAL_LLD_H_ */
diff --git a/os/hal/platforms/LPC214x/pal_lld.c b/os/hal/platforms/LPC214x/pal_lld.c index 5a024fff8..8e4481db0 100644 --- a/os/hal/platforms/LPC214x/pal_lld.c +++ b/os/hal/platforms/LPC214x/pal_lld.c @@ -27,6 +27,8 @@ #include "ch.h"
#include "hal.h"
+#if CH_HAL_USE_PAL || defined(__DOXYGEN__)
+
/**
* @brief LPC214x I/O ports configuration.
* @details FIO units and PINSEL registers initialization.
@@ -86,4 +88,6 @@ void _pal_lld_setgroupmode(ioportid_t port, }
}
+#endif /* CH_HAL_USE_PAL */
+
/** @} */
diff --git a/os/hal/platforms/LPC214x/pal_lld.h b/os/hal/platforms/LPC214x/pal_lld.h index f007abda8..c89c98504 100644 --- a/os/hal/platforms/LPC214x/pal_lld.h +++ b/os/hal/platforms/LPC214x/pal_lld.h @@ -27,6 +27,8 @@ #ifndef _PAL_LLD_H_
#define _PAL_LLD_H_
+#if CH_HAL_USE_PAL || defined(__DOXYGEN__)
+
/*===========================================================================*/
/* Unsupported modes and specific modes */
/*===========================================================================*/
@@ -248,6 +250,8 @@ extern "C" { }
#endif
+#endif /* CH_HAL_USE_PAL */
+
#endif /* _PAL_LLD_H_ */
/** @} */
diff --git a/os/hal/platforms/LPC214x/serial_lld.c b/os/hal/platforms/LPC214x/serial_lld.c index e7ccc6dd0..970e0c6cd 100644 --- a/os/hal/platforms/LPC214x/serial_lld.c +++ b/os/hal/platforms/LPC214x/serial_lld.c @@ -27,6 +27,8 @@ #include "ch.h"
#include "hal.h"
+#if CH_HAL_USE_SERIAL || defined(__DOXYGEN__)
+
#if USE_LPC214x_UART0 || defined(__DOXYGEN__)
/** @brief UART0 serial driver identifier.*/
SerialDriver SD1;
@@ -331,4 +333,6 @@ void sd_lld_stop(SerialDriver *sdp) { #endif
}
+#endif /* CH_HAL_USE_SERIAL */
+
/** @} */
diff --git a/os/hal/platforms/LPC214x/serial_lld.h b/os/hal/platforms/LPC214x/serial_lld.h index b6ac8e379..4bfc97bc5 100644 --- a/os/hal/platforms/LPC214x/serial_lld.h +++ b/os/hal/platforms/LPC214x/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. */
/*===========================================================================*/
@@ -169,6 +171,8 @@ extern "C" { #endif
/** @endcond*/
+#endif /* CH_HAL_USE_SERIAL */
+
#endif /* _SERIAL_LLD_H_ */
/** @} */
|