aboutsummaryrefslogtreecommitdiffstats
path: root/os/io/platforms/STM32/serial_lld.h
diff options
context:
space:
mode:
Diffstat (limited to 'os/io/platforms/STM32/serial_lld.h')
-rw-r--r--os/io/platforms/STM32/serial_lld.h8
1 files changed, 3 insertions, 5 deletions
diff --git a/os/io/platforms/STM32/serial_lld.h b/os/io/platforms/STM32/serial_lld.h
index b5d32d605..983ae406d 100644
--- a/os/io/platforms/STM32/serial_lld.h
+++ b/os/io/platforms/STM32/serial_lld.h
@@ -27,11 +27,7 @@
#ifndef _SERIAL_LLD_H_
#define _SERIAL_LLD_H_
-#undef FALSE
-#undef TRUE
-#include <stm32f10x.h>
-#define FALSE 0
-#define TRUE (!FALSE)
+#if CH_HAL_USE_SERIAL
/*===========================================================================*/
/* Driver pre-compile time settings. */
@@ -195,6 +191,8 @@ extern "C" {
#endif
/** @endcond*/
+#endif /* CH_HAL_USE_SERIAL */
+
#endif /* _SERIAL_LLD_H_ */
/** @} */