X-Git-Url: http://git.linex4red.de/pub/USBasp.git/blobdiff_plain/253deb996f321c59c102a64e17f95d0b5b0a0e6d..b9b03aadb219d06fbad9d110e508db93e45461af:/LUFA/Drivers/USB/LowLevel/Host.h diff --git a/LUFA/Drivers/USB/LowLevel/Host.h b/LUFA/Drivers/USB/LowLevel/Host.h index b1d60afb5..911b41bd9 100644 --- a/LUFA/Drivers/USB/LowLevel/Host.h +++ b/LUFA/Drivers/USB/LowLevel/Host.h @@ -60,7 +60,7 @@ * and that the address used is not important (other than the fact that it is non-zero), a * fixed value is specified by the library. */ - #define USB_HOST_DEVICEADDRESS 1 + #define USB_HOST_DEVICEADDRESS 1 #if !defined(USB_HOST_TIMEOUT_MS) || defined(__DOXYGEN__) /** Constant for the maximum software timeout period of sent USB control transactions to an attached @@ -199,7 +199,7 @@ HOST_STATE_Suspended = 13, /**< May be implemented by the user project. */ }; - /** Enum for the error codes for the \ref USB_HostError event. + /** Enum for the error codes for the \ref EVENT_USB_HostError() event. * * \see \ref Group_Events for more information on this event. */ @@ -213,14 +213,14 @@ */ }; - /** Enum for the error codes for the \ref USB_DeviceEnumerationFailed event. + /** Enum for the error codes for the \ref EVENT_USB_DeviceEnumerationFailed() event. * * \see \ref Group_Events for more information on this event. */ enum USB_Host_EnumerationErrorCodes_t { HOST_ENUMERROR_NoError = 0, /**< No error occurred. Used internally, this is not a valid - * ErrorCode parameter value for the \ref USB_DeviceEnumerationFailed + * ErrorCode parameter value for the \ref EVENT_USB_DeviceEnumerationFailed() * event. */ HOST_ENUMERROR_WaitStage = 1, /**< One of the delays between enumeration steps failed @@ -244,7 +244,7 @@ #define USB_Host_HostMode_On() MACROS{ USBCON |= (1 << HOST); }MACROE #define USB_Host_HostMode_Off() MACROS{ USBCON &= ~(1 << HOST); }MACROE - #define USB_Host_VBUS_Auto_Enable() MACROS{ OTGCON &= ~(1 << VBUSHWC); UHWCON |= (1 << UVCONE); }MACROE + #define USB_Host_VBUS_Auto_Enable() MACROS{ OTGCON &= ~(1 << VBUSHWC); UHWCON |= (1 << UVCONE); }MACROE #define USB_Host_VBUS_Manual_Enable() MACROS{ OTGCON |= (1 << VBUSHWC); UHWCON &= ~(1 << UVCONE); DDRE |= (1 << 7); }MACROE #define USB_Host_VBUS_Auto_On() MACROS{ OTGCON |= (1 << VBUSREQ); }MACROE @@ -265,8 +265,12 @@ }; /* Function Prototypes: */ + void USB_Host_ProcessNextHostState(void); uint8_t USB_Host_WaitMS(uint8_t MS); - void USB_Host_ResetDevice(void); + + #if defined(INCLUDE_FROM_HOST_C) + static void USB_Host_ResetDevice(void); + #endif #endif /* Disable C linkage for C++ Compilers: */