stm32f4xx-hal icon indicating copy to clipboard operation
stm32f4xx-hal copied to clipboard

RTC prer must be written in 2 seperate write accesses

Open qiuchengxuan opened this issue 4 years ago • 0 comments

According to manual page 804

  1. To generate a 1 Hz clock for the calendar counter, program first the synchronous prescaler factor in RTC_PRER register, and then program the asynchronous prescaler factor. Even if only one of the two fields needs to be changed, 2 separate write accesses must be performed to the RTC_PRER register.

src/rtc.rs:60 should break into 2 seperate write accesses

qiuchengxuan avatar Feb 15 '21 08:02 qiuchengxuan