diff --git a/cpu/stm32/Makefile.dep b/cpu/stm32/Makefile.dep index aeba105e33..c5f22b7e55 100644 --- a/cpu/stm32/Makefile.dep +++ b/cpu/stm32/Makefile.dep @@ -24,4 +24,9 @@ ifneq (,$(filter stm32_eth,$(USEMODULE))) USEMODULE += xtimer endif +ifneq (,$(filter periph_can,$(FEATURES_USED))) + FEATURES_REQUIRED += periph_gpio + FEATURES_REQUIRED += periph_gpio_irq +endif + include $(RIOTCPU)/cortexm_common/Makefile.dep