File tree Expand file tree Collapse file tree 1 file changed +2
-4
lines changed Expand file tree Collapse file tree 1 file changed +2
-4
lines changed Original file line number Diff line number Diff line change @@ -58,10 +58,9 @@ void rtc_init(void)
58
58
}
59
59
60
60
#if MBED_CONF_TARGET_LSE_AVAILABLE
61
- RCC_OscInitStruct .OscillatorType = RCC_OSCILLATORTYPE_LSI | RCC_OSCILLATORTYPE_LSE ;
61
+ RCC_OscInitStruct .OscillatorType = RCC_OSCILLATORTYPE_LSE ;
62
62
RCC_OscInitStruct .PLL .PLLState = RCC_PLL_NONE ; // Mandatory, otherwise the PLL is reconfigured!
63
63
RCC_OscInitStruct .LSEState = RCC_LSE_ON ;
64
- RCC_OscInitStruct .LSIState = RCC_LSI_OFF ;
65
64
66
65
if (HAL_RCC_OscConfig (& RCC_OscInitStruct ) != HAL_OK ) {
67
66
error ("Cannot initialize RTC with LSE\n" );
@@ -81,9 +80,8 @@ void rtc_init(void)
81
80
__HAL_RCC_BACKUPRESET_RELEASE ();
82
81
83
82
// Enable LSI clock
84
- RCC_OscInitStruct .OscillatorType = RCC_OSCILLATORTYPE_LSI | RCC_OSCILLATORTYPE_LSE ;
83
+ RCC_OscInitStruct .OscillatorType = RCC_OSCILLATORTYPE_LSI ;
85
84
RCC_OscInitStruct .PLL .PLLState = RCC_PLL_NONE ; // Mandatory, otherwise the PLL is reconfigured!
86
- RCC_OscInitStruct .LSEState = RCC_LSE_OFF ;
87
85
RCC_OscInitStruct .LSIState = RCC_LSI_ON ;
88
86
if (HAL_RCC_OscConfig (& RCC_OscInitStruct ) != HAL_OK ) {
89
87
error ("Cannot initialize RTC with LSI\n" );
You can’t perform that action at this time.
0 commit comments