aboutsummaryrefslogtreecommitdiffstats
path: root/os/io/platforms/STM32/spi_lld.h
diff options
context:
space:
mode:
Diffstat (limited to 'os/io/platforms/STM32/spi_lld.h')
-rw-r--r--os/io/platforms/STM32/spi_lld.h10
1 files changed, 3 insertions, 7 deletions
diff --git a/os/io/platforms/STM32/spi_lld.h b/os/io/platforms/STM32/spi_lld.h
index 1cba01b42..e065ed2d4 100644
--- a/os/io/platforms/STM32/spi_lld.h
+++ b/os/io/platforms/STM32/spi_lld.h
@@ -27,13 +27,7 @@
#ifndef _SPI_LLD_H_
#define _SPI_LLD_H_
-#include <pal.h>
-
-#undef FALSE
-#undef TRUE
-#include <stm32f10x.h>
-#define FALSE 0
-#define TRUE (!FALSE)
+#if CH_HAL_USE_SPI
/*===========================================================================*/
/* Driver pre-compile time settings. */
@@ -209,6 +203,8 @@ extern "C" {
#endif
/** @endcond*/
+#endif /* CH_HAL_USE_SPI */
+
#endif /* _SPI_LLD_H_ */
/** @} */