diff --git a/drivers/rtt_rtc/Kconfig b/drivers/rtt_rtc/Kconfig index 68cbf8c42c..93c0227600 100644 --- a/drivers/rtt_rtc/Kconfig +++ b/drivers/rtt_rtc/Kconfig @@ -10,5 +10,6 @@ config MODULE_RTT_RTC depends on HAS_PERIPH_RTT depends on TEST_KCONFIG select MODULE_PERIPH_RTT + select MODULE_RTC_UTILS help Basic RTC implementation based on a RTT. diff --git a/drivers/rtt_rtc/Makefile.dep b/drivers/rtt_rtc/Makefile.dep index f8141a0a55..ff0e6305f5 100644 --- a/drivers/rtt_rtc/Makefile.dep +++ b/drivers/rtt_rtc/Makefile.dep @@ -2,3 +2,5 @@ ifeq (,$(UNIT_TESTS)) FEATURES_REQUIRED += periph_rtt endif + +USEMODULE += rtc_utils diff --git a/makefiles/features_modules.inc.mk b/makefiles/features_modules.inc.mk index 9c3785c3f3..3fb6eccf6f 100644 --- a/makefiles/features_modules.inc.mk +++ b/makefiles/features_modules.inc.mk @@ -52,7 +52,7 @@ ifneq (,$(filter periph_%, $(USEMODULE))) endif # include rtc_utils if periph_rtc is used -ifneq (,$(filter periph_rtc, $(USEMODULE))) +ifneq (,$(filter periph_rtc,$(USEMODULE))) USEMODULE += rtc_utils endif