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 7827992 commit b096bdeCopy full SHA for b096bde
src/otg_fs.rs
@@ -29,7 +29,7 @@ unsafe impl UsbPeripheral for USB {
29
const HIGH_SPEED: bool = false;
30
const FIFO_DEPTH_WORDS: usize = 320;
31
32
- fn try_enable() -> Result<(), Infallible> {
+ fn enable() {
33
let rcc = unsafe { &*stm32::RCC::ptr() };
34
35
cortex_m::interrupt::free(|_| {
@@ -40,8 +40,6 @@ unsafe impl UsbPeripheral for USB {
40
rcc.ahb2rstr.modify(|_, w| w.otgfsrst().set_bit());
41
rcc.ahb2rstr.modify(|_, w| w.otgfsrst().clear_bit());
42
});
43
-
44
- Ok(())
45
}
46
47
0 commit comments