diff --git a/spi.h b/spi.h --- a/spi.h +++ b/spi.h @@ -1,7 +1,9 @@ #ifndef SPI_H #define SPI_H -void init_spi(void); +#include "stm32f0xx_hal_conf.h" + +void init_spi(SPI_HandleTypeDef* hspi1); #endif