Skip to content

Commit 5c46bec

Browse files
committed
STM32 RTC with LSI : stop reset registers during init
1 parent 0fecc56 commit 5c46bec

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

targets/TARGET_STM/rtc_api.c

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -76,10 +76,6 @@ void rtc_init(void)
7676
error("PeriphClkInitStruct RTC failed with LSE\n");
7777
}
7878
#else /* MBED_CONF_TARGET_LSE_AVAILABLE */
79-
// Reset Backup domain
80-
__HAL_RCC_BACKUPRESET_FORCE();
81-
__HAL_RCC_BACKUPRESET_RELEASE();
82-
8379
// Enable LSI clock
8480
RCC_OscInitStruct.OscillatorType = RCC_OSCILLATORTYPE_LSI;
8581
RCC_OscInitStruct.PLL.PLLState = RCC_PLL_NONE; // Mandatory, otherwise the PLL is reconfigured!

0 commit comments

Comments
 (0)