Turn off VBUS discharge to reduce current draw

This commit is contained in:
Dominic Spill
2017-01-31 15:54:48 -07:00
parent 35922fc24e
commit 78182194e0

View File

@ -320,8 +320,7 @@ static void usb_controller_set_device_mode() {
// Set device-related OTG flags
// OTG termination: controls pull-down on USB_DM
// VBUS_Discharge: VBUS discharges through resistor
USB0_OTGSC = USB0_OTGSC_OT | USB0_OTGSC_VD;
USB0_OTGSC = USB0_OTGSC_OT;
}
usb_speed_t usb_speed(