diff options
Diffstat (limited to 'os/io/src/spi.c')
-rw-r--r-- | os/io/src/spi.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/os/io/src/spi.c b/os/io/src/spi.c index 4d45d217d..8b8ea6f32 100644 --- a/os/io/src/spi.c +++ b/os/io/src/spi.c @@ -24,8 +24,10 @@ * @{
*/
-#include <ch.h>
-#include <spi.h>
+#include "ch.h"
+#include "hal.h"
+
+#if CH_HAL_USE_SPI
/**
* @brief SPI Driver initialization.
@@ -255,4 +257,6 @@ void spiReleaseBus(SPIDriver *spip) { }
#endif /*SPI_USE_MUTUAL_EXCLUSION */
+#endif /* CH_HAL_USE_SPI */
+
/** @} */
|