diff --git a/drivers/periph_common/Makefile.dep b/drivers/periph_common/Makefile.dep index 714a674bd3..5a08a3c0e4 100644 --- a/drivers/periph_common/Makefile.dep +++ b/drivers/periph_common/Makefile.dep @@ -1,2 +1,4 @@ # Always use periph_gpio_irq_unmask, if available -FEATURES_OPTIONAL += periph_gpio_ll_irq_unmask +ifneq (,$(filter periph_gpio_ll%,$(USEMODULE))) + FEATURES_OPTIONAL += periph_gpio_ll_irq_unmask +endif