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 7513776 commit 57a3907Copy full SHA for 57a3907
examples/usb_serial.rs
@@ -41,11 +41,7 @@ fn main() -> ! {
41
let usb_dm = gpioa.pa11.into_alternate();
42
let usb_dp = gpioa.pa12.into_alternate();
43
44
- let usb = dp.USB.usb(
45
- ccdr.peripheral.USB, /*.kernel_clk_mux(USBSEL::Pll2Q)*/
46
- usb_dm,
47
- usb_dp,
48
- );
+ let usb = dp.USB.usb(ccdr.peripheral.USB, usb_dm, usb_dp);
49
let usb_bus = UsbBus::new(usb);
50
51
let mut serial = SerialPort::new(&usb_bus);
src/usb.rs
@@ -28,8 +28,6 @@ impl UsbExt for stm32::USB {
28
rec.kernel_clk_mux(USBSEL::Hsi48);
29
};
30
31
- //rec.enable().reset(); is this done by UsbPeripheral::enable()
32
-
33
Peripheral {
34
_usb: self,
35
pin_dm,
0 commit comments