Skip to content

Commit

Permalink
Fix: LSI 32khz and use 249 for synchprediv
Browse files Browse the repository at this point in the history
  • Loading branch information
jasonyang-ee committed Jul 12, 2023
1 parent 254cd72 commit d7830ae
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Core/Src/rtc.c
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ void MX_RTC_Init(void)
hrtc.Instance = RTC;
hrtc.Init.HourFormat = RTC_HOURFORMAT_24;
hrtc.Init.AsynchPrediv = 127;
hrtc.Init.SynchPrediv = 255;
hrtc.Init.SynchPrediv = 249;
hrtc.Init.OutPut = RTC_OUTPUT_DISABLE;
hrtc.Init.OutPutRemap = RTC_OUTPUT_REMAP_NONE;
hrtc.Init.OutPutPolarity = RTC_OUTPUT_POLARITY_HIGH;
Expand Down

0 comments on commit d7830ae

Please sign in to comment.