From 182fbc3ac371990a2b22fac44f865c725baff88d Mon Sep 17 00:00:00 2001 From: Henrik Stickann <4376396-Mithradir@users.noreply.gitlab.com> Date: Mon, 11 Apr 2022 17:13:41 +0200 Subject: [PATCH] Add error if GPIO disabled --- include/sta/hal/spi.hpp | 4 ++++ 1 file changed, 4 insertions(+) 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