File tree Expand file tree Collapse file tree 2 files changed +10
-1
lines changed Expand file tree Collapse file tree 2 files changed +10
-1
lines changed Original file line number Diff line number Diff line change @@ -110,6 +110,15 @@ mod rtc {
110
110
} ) ;
111
111
self
112
112
}
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
+ }
113
122
}
114
123
115
124
/// RTC kernel clock source selection
Original file line number Diff line number Diff line change @@ -308,7 +308,7 @@ unsafe impl UsbPeripheral for USB1_ULPI {
308
308
rcc. ahb1enr ( ) . modify ( |_, w| w. usb1otgen ( ) . enabled ( ) ) ;
309
309
310
310
// Enable ULPI Clock
311
- rcc. ahb1enr ( ) . modify ( |_, w| w. usb1ulpien ( ) . enabled ( ) ) ;
311
+ rcc. ahb1enr ( ) . modify ( |_, w| w. usb1otgulpien ( ) . enabled ( ) ) ;
312
312
313
313
// Reset USB peripheral
314
314
rcc. ahb1rstr ( ) . modify ( |_, w| w. usb1otgrst ( ) . set_bit ( ) ) ;
You can’t perform that action at this time.
0 commit comments