Skip to content

Commit 57a3907

Browse files
committed
Cleanup
1 parent 7513776 commit 57a3907

File tree

2 files changed

+1
-7
lines changed

2 files changed

+1
-7
lines changed

examples/usb_serial.rs

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -41,11 +41,7 @@ fn main() -> ! {
4141
let usb_dm = gpioa.pa11.into_alternate();
4242
let usb_dp = gpioa.pa12.into_alternate();
4343

44-
let usb = dp.USB.usb(
45-
ccdr.peripheral.USB, /*.kernel_clk_mux(USBSEL::Pll2Q)*/
46-
usb_dm,
47-
usb_dp,
48-
);
44+
let usb = dp.USB.usb(ccdr.peripheral.USB, usb_dm, usb_dp);
4945
let usb_bus = UsbBus::new(usb);
5046

5147
let mut serial = SerialPort::new(&usb_bus);

src/usb.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,6 @@ impl UsbExt for stm32::USB {
2828
rec.kernel_clk_mux(USBSEL::Hsi48);
2929
};
3030

31-
//rec.enable().reset(); is this done by UsbPeripheral::enable()
32-
3331
Peripheral {
3432
_usb: self,
3533
pin_dm,

0 commit comments

Comments
 (0)