aboutsummaryrefslogtreecommitdiffstats
path: root/os/io/templates/spi_lld.h
diff options
context:
space:
mode:
Diffstat (limited to 'os/io/templates/spi_lld.h')
-rw-r--r--os/io/templates/spi_lld.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/os/io/templates/spi_lld.h b/os/io/templates/spi_lld.h
index 5246225d7..907bad859 100644
--- a/os/io/templates/spi_lld.h
+++ b/os/io/templates/spi_lld.h
@@ -27,6 +27,8 @@
#ifndef _SPI_LLD_H_
#define _SPI_LLD_H_
+#if CH_HAL_USE_SPI
+
/*===========================================================================*/
/* Driver pre-compile time settings. */
/*===========================================================================*/
@@ -99,6 +101,8 @@ extern "C" {
}
#endif
+#endif /* CH_HAL_USE_SPI */
+
#endif /* _SPI_LLD_H_ */
/** @} */