diff --git a/include/sta/hal/spi.hpp b/include/sta/hal/spi.hpp index 22d7f53..7d86d5d 100644 --- a/include/sta/hal/spi.hpp +++ b/include/sta/hal/spi.hpp @@ -10,6 +10,10 @@ #include #ifdef STA_HAL_SPI_ENABLE +#ifndef STA_HAL_GPIO_ENABLE +#error "HAL GPIO required" +#endif // !STA_HAL_GPIO_ENABLE + #include #include