We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent eb9ad5f commit 9938d06Copy full SHA for 9938d06
src/usb.rs
@@ -34,10 +34,10 @@ unsafe impl UsbPeripheral for Peripheral {
34
35
cortex_m::interrupt::free(|_| {
36
// Enable USB peripheral
37
- rcc.apb1enr.modify(|_, w| w.usben().set_bit());
+ rcc.apb1enr.modify(|_, w| w.usben().enabled());
38
39
// Reset USB peripheral
40
- rcc.apb1rstr.modify(|_, w| w.usbrst().set_bit());
+ rcc.apb1rstr.modify(|_, w| w.usbrst().reset());
41
rcc.apb1rstr.modify(|_, w| w.usbrst().clear_bit());
42
});
43
}
0 commit comments