aboutsummaryrefslogtreecommitdiffstats
path: root/os/hal/platforms/AVR/serial_lld.c
diff options
context:
space:
mode:
authorgdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4>2009-12-08 14:42:32 +0000
committergdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4>2009-12-08 14:42:32 +0000
commitcbbacdb239211fc33b0423b1213d2e58ac1692da (patch)
tree87b6a0de2bfe60c72113b3d9c6efb199aabb198b /os/hal/platforms/AVR/serial_lld.c
parente3538a6583b6a269bfabb7b27166dc5296a61879 (diff)
downloadChibiOS-cbbacdb239211fc33b0423b1213d2e58ac1692da.tar.gz
ChibiOS-cbbacdb239211fc33b0423b1213d2e58ac1692da.tar.bz2
ChibiOS-cbbacdb239211fc33b0423b1213d2e58ac1692da.zip
HAL support for AVR.
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@1394 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'os/hal/platforms/AVR/serial_lld.c')
-rw-r--r--os/hal/platforms/AVR/serial_lld.c10
1 files changed, 7 insertions, 3 deletions
diff --git a/os/hal/platforms/AVR/serial_lld.c b/os/hal/platforms/AVR/serial_lld.c
index 0acf15700..1f1bef013 100644
--- a/os/hal/platforms/AVR/serial_lld.c
+++ b/os/hal/platforms/AVR/serial_lld.c
@@ -19,13 +19,15 @@
/**
* @file AVR/serial_lld.c
- * @brief AVR low level serial driver code
+ * @brief AVR low level serial driver code.
* @addtogroup AVR_SERIAL
* @{
*/
-#include <ch.h>
-#include <serial.h>
+#include "ch.h"
+#include "hal.h"
+
+#if CH_HAL_USE_SERIAL || defined(__DOXYGEN__)
#if USE_AVR_USART0 || defined(__DOXYGEN__)
/**
@@ -253,4 +255,6 @@ void sd_lld_stop(SerialDriver *sdp) {
#endif
}
+#endif /* CH_HAL_USE_SERIAL */
+
/** @} */