diff --git a/targets/TARGET_NUVOTON/TARGET_M451/rtc_api.c b/targets/TARGET_NUVOTON/TARGET_M451/rtc_api.c index f4fc072622..c64d375bf9 100644 --- a/targets/TARGET_NUVOTON/TARGET_M451/rtc_api.c +++ b/targets/TARGET_NUVOTON/TARGET_M451/rtc_api.c @@ -100,7 +100,7 @@ void rtc_init(void) void rtc_free(void) { - // N/A + CLK_DisableModuleClock(rtc_modinit.clkidx); } int rtc_isenabled(void) diff --git a/targets/TARGET_NUVOTON/TARGET_M480/rtc_api.c b/targets/TARGET_NUVOTON/TARGET_M480/rtc_api.c index 698009d1db..4bcd67419a 100644 --- a/targets/TARGET_NUVOTON/TARGET_M480/rtc_api.c +++ b/targets/TARGET_NUVOTON/TARGET_M480/rtc_api.c @@ -100,7 +100,7 @@ void rtc_init(void) void rtc_free(void) { - // N/A + CLK_DisableModuleClock(rtc_modinit.clkidx); } int rtc_isenabled(void) @@ -114,6 +114,7 @@ int rtc_isenabled(void) // NOTE: Check RTC Init Active flag to support crossing reset cycle. return !! (RTC->INIT & RTC_INIT_ACTIVE_Msk); } + time_t rtc_read(void) { /* NOTE: After boot, RTC time registers are not synced immediately, about 1 sec latency. diff --git a/targets/TARGET_NUVOTON/TARGET_NANO100/rtc_api.c b/targets/TARGET_NUVOTON/TARGET_NANO100/rtc_api.c index 59a738db64..cdb7f01ccf 100644 --- a/targets/TARGET_NUVOTON/TARGET_NANO100/rtc_api.c +++ b/targets/TARGET_NUVOTON/TARGET_NANO100/rtc_api.c @@ -100,7 +100,7 @@ void rtc_init(void) void rtc_free(void) { - // N/A + CLK_DisableModuleClock(rtc_modinit.clkidx); } int rtc_isenabled(void) diff --git a/targets/TARGET_NUVOTON/TARGET_NUC472/rtc_api.c b/targets/TARGET_NUVOTON/TARGET_NUC472/rtc_api.c index 9034c57e38..3442f247a8 100644 --- a/targets/TARGET_NUVOTON/TARGET_NUC472/rtc_api.c +++ b/targets/TARGET_NUVOTON/TARGET_NUC472/rtc_api.c @@ -100,7 +100,7 @@ void rtc_init(void) void rtc_free(void) { - // N/A + CLK_DisableModuleClock(rtc_modinit.clkidx); } int rtc_isenabled(void)