diff options
author | Vegard Storheil Eriksen <zyp@jvnv.net> | 2012-01-22 10:55:51 +0100 |
---|---|---|
committer | Vegard Storheil Eriksen <zyp@jvnv.net> | 2012-01-22 10:55:51 +0100 |
commit | 6fc7b7627313d2850895237d30c9e0ae2ee70ab3 (patch) | |
tree | 3328cfe75ed20ee564597957141eb1d2a9d23e4a | |
parent | 653b809a0ff852c5f5184fd46a5364dd16ac2133 (diff) |
Enable pullup on DP.
-rw-r--r-- | main.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -42,9 +42,12 @@ int main() { led_red.on(); led_blue.off(); + usb_vbus.set_mode(Pin::Input); 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_af(10); RCC.enable(RCC.OTGFS); |