diff options
-rw-r--r-- | main.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
@@ -52,12 +52,14 @@ int main() { led_red.on(); led_blue.off(); - usb_vbus.set_mode(Pin::Input); + usb_vbus.set_mode(Pin::AF); + usb_vbus.set_pull(Pin::PullNone); + usb_vbus.set_af(10); usb_dm.set_mode(Pin::AF); usb_dm.set_pull(Pin::PullNone); usb_dm.set_af(10); usb_dp.set_mode(Pin::AF); - usb_dp.set_pull(Pin::PullUp); + usb_dp.set_pull(Pin::PullNone); usb_dp.set_af(10); RCC.enable(RCC.OTGFS); |