diff options
Diffstat (limited to 'os/io/include/spi.h')
-rw-r--r-- | os/io/include/spi.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/os/io/include/spi.h b/os/io/include/spi.h index cebde453f..6f17f69c2 100644 --- a/os/io/include/spi.h +++ b/os/io/include/spi.h @@ -27,6 +27,8 @@ #ifndef _SPI_H_
#define _SPI_H_
+#if CH_HAL_USE_SPI
+
/**
* @brief Enables the mutual exclusion APIs on the SPI bus.
*/
@@ -71,6 +73,8 @@ extern "C" { }
#endif
+#endif /* CH_HAL_USE_SPI */
+
#endif /* _SPI_H_ */
/** @} */
|