mirror of https://github.com/ARMmbed/mbed-os.git
STM32 RTC with LSI : stop reset registers during init
parent
0fecc56e84
commit
5c46bec4d4
|
|
@ -76,10 +76,6 @@ void rtc_init(void)
|
||||||
error("PeriphClkInitStruct RTC failed with LSE\n");
|
error("PeriphClkInitStruct RTC failed with LSE\n");
|
||||||
}
|
}
|
||||||
#else /* MBED_CONF_TARGET_LSE_AVAILABLE */
|
#else /* MBED_CONF_TARGET_LSE_AVAILABLE */
|
||||||
// Reset Backup domain
|
|
||||||
__HAL_RCC_BACKUPRESET_FORCE();
|
|
||||||
__HAL_RCC_BACKUPRESET_RELEASE();
|
|
||||||
|
|
||||||
// Enable LSI clock
|
// Enable LSI clock
|
||||||
RCC_OscInitStruct.OscillatorType = RCC_OSCILLATORTYPE_LSI;
|
RCC_OscInitStruct.OscillatorType = RCC_OSCILLATORTYPE_LSI;
|
||||||
RCC_OscInitStruct.PLL.PLLState = RCC_PLL_NONE; // Mandatory, otherwise the PLL is reconfigured!
|
RCC_OscInitStruct.PLL.PLLState = RCC_PLL_NONE; // Mandatory, otherwise the PLL is reconfigured!
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue