X-Git-Url: http://git.linex4red.de/pub/USBasp.git/blobdiff_plain/6a8e27f7ee43169b9f6eb928b12e00d6306618ff..01c4bef107214d5a4407a654754dc952ddd5cdba:/LUFA/Drivers/USB/HighLevel/Events.h diff --git a/LUFA/Drivers/USB/HighLevel/Events.h b/LUFA/Drivers/USB/HighLevel/Events.h index 781553457..4624e5bce 100644 --- a/LUFA/Drivers/USB/HighLevel/Events.h +++ b/LUFA/Drivers/USB/HighLevel/Events.h @@ -202,13 +202,15 @@ */ void USB_Disconnect(void); - /** Event for USB device power on failure. This event fires when the USB interface fails to + /** Event for USB initialization failure. This event fires when the USB interface fails to * initialize correctly due to a hardware or software fault. * - * \param ErrorCode Error code indicating the failure reason, a value in \ref USB_PowerOnErrorCodes_t + * \note This event only exists on USB AVR models which support dual role modes. + * + * \param ErrorCode Error code indicating the failure reason, a value in \ref USB_InitErrorCodes_t * located in LowLevel.h. */ - void USB_PowerOnFail(const uint8_t ErrorCode); + void USB_InitFailure(const uint8_t ErrorCode); /** Event for USB mode pin level change. This event fires when the USB interface is set to dual role * mode, and the UID pin level has changed to indicate a new mode (device or host). This event fires @@ -374,7 +376,7 @@ #define USB_DeviceEnumerationComplete_P (void) #if defined(USB_CAN_BE_BOTH) - #define USB_PowerOnFail_P (const uint8_t ErrorCode) + #define USB_InitFailure_P (const uint8_t ErrorCode) #define USB_UIDChange_P (void) #endif @@ -409,7 +411,7 @@ ALIAS_STUB(USB_DeviceEnumerationComplete); #if defined(USB_CAN_BE_BOTH) - ALIAS_STUB(USB_PowerOnFail); + ALIAS_STUB(USB_InitFailure); ALIAS_STUB(USB_UIDChange); #endif