File tree Expand file tree Collapse file tree 1 file changed +0
-20
lines changed Expand file tree Collapse file tree 1 file changed +0
-20
lines changed Original file line number Diff line number Diff line change @@ -144,28 +144,8 @@ void rtc_init(void)
144
144
145
145
void rtc_free (void )
146
146
{
147
- #if !MBED_CONF_TARGET_LSE_AVAILABLE
148
- // Enable Power clock
149
- __HAL_RCC_PWR_CLK_ENABLE ();
150
-
151
- // Enable access to Backup domain
152
- HAL_PWR_EnableBkUpAccess ();
153
-
154
- // Reset Backup domain
155
- __HAL_RCC_BACKUPRESET_FORCE ();
156
- __HAL_RCC_BACKUPRESET_RELEASE ();
157
-
158
147
// Disable access to Backup domain
159
148
HAL_PWR_DisableBkUpAccess ();
160
- #endif
161
-
162
- // Disable LSI and LSE clocks
163
- RCC_OscInitTypeDef RCC_OscInitStruct = {0 };
164
- RCC_OscInitStruct .OscillatorType = RCC_OSCILLATORTYPE_LSI | RCC_OSCILLATORTYPE_LSE ;
165
- RCC_OscInitStruct .PLL .PLLState = RCC_PLL_NONE ;
166
- RCC_OscInitStruct .LSIState = RCC_LSI_OFF ;
167
- RCC_OscInitStruct .LSEState = RCC_LSE_OFF ;
168
- HAL_RCC_OscConfig (& RCC_OscInitStruct );
169
149
}
170
150
171
151
/*
You can’t perform that action at this time.
0 commit comments