diff options
Diffstat (limited to 'os/io/src/serial.c')
-rw-r--r-- | os/io/src/serial.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/os/io/src/serial.c b/os/io/src/serial.c index 9c398f5f0..2944a98ab 100644 --- a/os/io/src/serial.c +++ b/os/io/src/serial.c @@ -24,8 +24,10 @@ * @{
*/
-#include <ch.h>
-#include <serial.h>
+#include "ch.h"
+#include "hal.h"
+
+#if CH_HAL_USE_SERIAL
/*
* Interface implementation, the following functions just invoke the equivalent
@@ -194,4 +196,6 @@ sdflags_t sdGetAndClearFlags(SerialDriver *sd) { return mask;
}
+#endif /* CH_HAL_USE_SERIAL */
+
/** @} */
|