File tree Expand file tree Collapse file tree 2 files changed +2
-8
lines changed Expand file tree Collapse file tree 2 files changed +2
-8
lines changed Original file line number Diff line number Diff line change @@ -64,10 +64,6 @@ void LowPower_init(){
64
64
/* Allow access to Backup domain */
65
65
HAL_PWR_EnableBkUpAccess ();
66
66
67
- /* Reset RTC Domain */
68
- __HAL_RCC_BACKUPRESET_FORCE ();
69
- __HAL_RCC_BACKUPRESET_RELEASE ();
70
-
71
67
#ifdef __HAL_RCC_WAKEUPSTOP_CLK_CONFIG
72
68
/* Ensure that HSI is wake-up system clock */
73
69
__HAL_RCC_WAKEUPSTOP_CLK_CONFIG (RCC_STOP_WAKEUPCLOCK_HSI );
Original file line number Diff line number Diff line change @@ -322,10 +322,8 @@ void RTC_init(hourFormat_t format, sourceClock_t source)
322
322
HAL_PWR_EnableBkUpAccess ();
323
323
#endif
324
324
/* Reset RTC Domain */
325
- if (source != LSE_CLOCK ) {
326
- __HAL_RCC_BACKUPRESET_FORCE ();
327
- __HAL_RCC_BACKUPRESET_RELEASE ();
328
- }
325
+ __HAL_RCC_BACKUPRESET_FORCE ();
326
+ __HAL_RCC_BACKUPRESET_RELEASE ();
329
327
330
328
/* Init RTC clock */
331
329
RTC_initClock (source );
You can’t perform that action at this time.
0 commit comments