diff --git a/boards/common/microbit/Makefile.dep b/boards/common/microbit/Makefile.dep index 7b743b0ee9..4273396c08 100644 --- a/boards/common/microbit/Makefile.dep +++ b/boards/common/microbit/Makefile.dep @@ -3,3 +3,7 @@ ifneq (,$(filter microbit,$(USEMODULE))) USEMODULE += ztimer_usec USEMODULE += mineplex endif + +ifneq (,$(filter saul_default,$(USEMODULE))) + USEMODULE += saul_gpio +endif diff --git a/boards/microbit-v2/Kconfig b/boards/microbit-v2/Kconfig index 945fb13b9a..3dd82fe79c 100644 --- a/boards/microbit-v2/Kconfig +++ b/boards/microbit-v2/Kconfig @@ -18,4 +18,5 @@ config BOARD_MICROBIT_V2 select HAS_PERIPH_UART select HAS_VDD_LC_FILTER_REG1 +source "$(RIOTBOARD)/common/microbit/Kconfig" source "$(RIOTBOARD)/common/nrf52/Kconfig" diff --git a/boards/microbit-v2/Makefile.dep b/boards/microbit-v2/Makefile.dep index 64554993f0..1af3e2ed3d 100644 --- a/boards/microbit-v2/Makefile.dep +++ b/boards/microbit-v2/Makefile.dep @@ -1,6 +1,2 @@ -ifneq (,$(filter saul_default,$(USEMODULE))) - USEMODULE += saul_gpio -endif - include $(RIOTBOARD)/common/microbit/Makefile.dep include $(RIOTBOARD)/common/nrf52/Makefile.dep diff --git a/boards/microbit/Makefile.dep b/boards/microbit/Makefile.dep index 8d41eee322..f69ce02914 100644 --- a/boards/microbit/Makefile.dep +++ b/boards/microbit/Makefile.dep @@ -1,5 +1,4 @@ ifneq (,$(filter saul_default,$(USEMODULE))) - USEMODULE += saul_gpio USEMODULE += mma8x5x endif