Added INVERTED_VBUS_ENABLE_LINE and NO_AUTO_VBUS_MANAGEMENT compile time options (thanks to Opendous Inc.).
This commit is contained in:
parent
252bd7bb2c
commit
a677254026
7 changed files with 41 additions and 0 deletions
|
|
@ -80,6 +80,11 @@ void USB_Host_ProcessNextHostState(void)
|
|||
USB_Host_VBUS_Auto_Enable();
|
||||
USB_Host_VBUS_Auto_On();
|
||||
|
||||
#if defined(NO_AUTO_VBUS_MANAGEMENT)
|
||||
USB_Host_VBUS_Manual_Enable();
|
||||
USB_Host_VBUS_Manual_On();
|
||||
#endif
|
||||
|
||||
USB_HostState = HOST_STATE_Powered_WaitForConnect;
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -134,6 +134,10 @@ void USB_ResetInterface(void)
|
|||
}
|
||||
else if (USB_CurrentMode == USB_MODE_Host)
|
||||
{
|
||||
#if defined(INVERTED_VBUS_ENABLE_LINE)
|
||||
AVR32_USBB.USBCON.vbuspol = true;
|
||||
#endif
|
||||
|
||||
#if defined(USB_CAN_BE_HOST)
|
||||
AVR32_USBB.USBCON.uimod = false;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue