1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2026-01-01 01:41:18 +01:00

cpu/lpc2387: enable RTC on init

All other CPU implementations have the RTC running after
rtc_init() was called.

Fix this for lpc2387.
This commit is contained in:
Benjamin Valentin 2019-10-27 01:18:24 +02:00 committed by Benjamin Valentin
parent c1ea3c2eb6
commit 985fb53c9f

View File

@ -62,6 +62,8 @@ void rtc_init(void)
_rtc_set(0);
}
rtc_poweron();
DEBUG("%2lu.%2lu.%4lu %2lu:%2lu:%2lu\n",
RTC_DOM, RTC_MONTH, RTC_YEAR, RTC_HOUR, RTC_MIN, RTC_SEC);
}