K64F: adapt RTC drivers to the new standards (free function)

rtc_free() does not stop the RTC from counting. Only disables clock gate since processor no longer needs to read RTC registers.
pull/7009/head
Przemyslaw Stekiel 2018-03-01 10:37:03 +01:00 committed by Bartek Szatkowski
parent 4fc3d07bd0
commit 377db73100
1 changed files with 4 additions and 1 deletions

View File

@ -37,7 +37,10 @@ void rtc_init(void)
void rtc_free(void)
{
RTC_Deinit(RTC);
#if !(defined(FSL_SDK_DISABLE_DRIVER_CLOCK_CONTROL) && FSL_SDK_DISABLE_DRIVER_CLOCK_CONTROL)
/* Gate the module clock */
CLOCK_DisableClock(kCLOCK_Rtc0);
#endif /* FSL_SDK_DISABLE_DRIVER_CLOCK_CONTROL */
}
/*