Skip to content

Commit

Permalink
freeze RTC during debug
Browse files Browse the repository at this point in the history
  • Loading branch information
FRASTM committed Sep 19, 2023
1 parent f6f2657 commit 9db0abd
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/rtc.c
Original file line number Diff line number Diff line change
Expand Up @@ -597,6 +597,9 @@ bool RTC_init(hourFormat_t format, binaryMode_t mode, sourceClock_t source, bool
HAL_RTCEx_EnableBypassShadow(&RtcHandle);
#endif


LL_DBGMCU_APB1_GRP1_FreezePeriph(LL_DBGMCU_APB1_GRP1_RTC_STOP);

return reinit;
}

Expand Down

0 comments on commit 9db0abd

Please sign in to comment.