1
0
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:
Francisco 2020-08-05 09:31:58 +02:00 committed by GitHub
commit dbc128570d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 0 deletions

View File

@ -2,6 +2,8 @@ include ../Makefile.tests_common
FEATURES_REQUIRED = periph_rtc
DISABLE_MODULE += periph_init_rtc
USEMODULE += xtimer
include $(RIOTBASE)/Makefile.include

View File

@ -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);