STM32 RTC with LSI : stop reset registers during init

pull/8085/head
jeromecoutant 2018-09-11 14:04:49 +02:00
parent 0fecc56e84
commit 5c46bec4d4
1 changed files with 0 additions and 4 deletions

View File

@ -76,10 +76,6 @@ void rtc_init(void)
error("PeriphClkInitStruct RTC failed with LSE\n");
}
#else /* MBED_CONF_TARGET_LSE_AVAILABLE */
// Reset Backup domain
__HAL_RCC_BACKUPRESET_FORCE();
__HAL_RCC_BACKUPRESET_RELEASE();
// Enable LSI clock
RCC_OscInitStruct.OscillatorType = RCC_OSCILLATORTYPE_LSI;
RCC_OscInitStruct.PLL.PLLState = RCC_PLL_NONE; // Mandatory, otherwise the PLL is reconfigured!