mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2025-12-27 15:31:17 +01:00
Merge pull request #14675 from benpicco/tests/periph_rtc_delayed_start
tests/periph_rtc: delay RTC init
This commit is contained in:
commit
dbc128570d
@ -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