stm32/rtc: misc. cleanup and move to bps by default

This commit is contained in:
xoviat
2023-11-01 17:17:14 -05:00
parent 2765f0978f
commit bab61f9665
5 changed files with 70 additions and 73 deletions

View File

@ -11,6 +11,7 @@ impl super::Rtc {
pub(super) fn configure(&mut self, async_psc: u8, sync_psc: u16) {
self.write(true, |rtc| {
rtc.cr().modify(|w| {
w.set_bypshad(true);
w.set_fmt(Fmt::TWENTYFOURHOUR);
w.set_osel(Osel::DISABLED);
w.set_pol(Pol::HIGH);