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.
This commit is contained in:
parent
9f4f27a8cd
commit
d90d09573b
@ -2,6 +2,8 @@ include ../Makefile.tests_common
|
||||
|
||||
FEATURES_REQUIRED = periph_rtc
|
||||
|
||||
DISABLE_MODULE += periph_init_rtc
|
||||
|
||||
USEMODULE += xtimer
|
||||
|
||||
include $(RIOTBASE)/Makefile.include
|
||||
|
||||
@ -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);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user