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 Jul 7, 2023
1 parent a331737 commit cbd5bcb
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 @@ -511,6 +511,9 @@ bool RTC_init(hourFormat_t format, rtcMode_t mode, sourceClock_t source, bool re
HAL_RTCEx_EnableBypassShadow(&RtcHandle);
#endif


LL_DBGMCU_APB1_GRP1_FreezePeriph(LL_DBGMCU_APB1_GRP1_RTC_STOP);

return reinit;
}

Expand Down

0 comments on commit cbd5bcb

Please sign in to comment.