Skip to content

Commit 23b39e6

Browse files
committed
Fix errors
1 parent a3a3dc7 commit 23b39e6

File tree

2 files changed

+10
-1
lines changed

2 files changed

+10
-1
lines changed

src/rcc/backup.rs

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -110,6 +110,15 @@ mod rtc {
110110
});
111111
self
112112
}
113+
114+
/// # Safety
115+
/// Caller has to ensure there are no other instances of this type
116+
#[inline(always)]
117+
unsafe fn new() -> Self {
118+
Rtc {
119+
_marker: PhantomData,
120+
}
121+
}
113122
}
114123

115124
/// RTC kernel clock source selection

src/usb_hs.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -308,7 +308,7 @@ unsafe impl UsbPeripheral for USB1_ULPI {
308308
rcc.ahb1enr().modify(|_, w| w.usb1otgen().enabled());
309309

310310
// Enable ULPI Clock
311-
rcc.ahb1enr().modify(|_, w| w.usb1ulpien().enabled());
311+
rcc.ahb1enr().modify(|_, w| w.usb1otgulpien().enabled());
312312

313313
// Reset USB peripheral
314314
rcc.ahb1rstr().modify(|_, w| w.usb1otgrst().set_bit());

0 commit comments

Comments
 (0)