From d90d09573b5746248428aeb227ef93b2df904781 Mon Sep 17 00:00:00 2001 From: Benjamin Valentin Date: Fri, 24 Jul 2020 11:22:35 +0200 Subject: [PATCH] tests/periph_rtc: delay RTC init Just like `tests/periph_rtt`, delay the RTC init so that if init gets stuck it doesn't get stuck in early boot but inside the test. This makes debugging easier. --- tests/periph_rtc/Makefile | 2 ++ tests/periph_rtc/main.c | 2 ++ 2 files changed, 4 insertions(+) diff --git a/tests/periph_rtc/Makefile b/tests/periph_rtc/Makefile index ecb6a6a796..e549720ff4 100644 --- a/tests/periph_rtc/Makefile +++ b/tests/periph_rtc/Makefile @@ -2,6 +2,8 @@ include ../Makefile.tests_common FEATURES_REQUIRED = periph_rtc +DISABLE_MODULE += periph_init_rtc + USEMODULE += xtimer include $(RIOTBASE)/Makefile.include diff --git a/tests/periph_rtc/main.c b/tests/periph_rtc/main.c index 75b567a3ad..aad6ba42d7 100644 --- a/tests/periph_rtc/main.c +++ b/tests/periph_rtc/main.c @@ -74,6 +74,8 @@ int main(void) printf("This test will display 'Alarm!' every %u seconds for %u times\n", PERIOD, REPEAT); + rtc_init(); + /* set RTC */ print_time(" Setting clock to ", &time); rtc_set_time(&time);