aboutsummaryrefslogtreecommitdiffstats
path: root/LUFA/Drivers/USB/HighLevel
diff options
context:
space:
mode:
authorDean Camera <dean@fourwalledcubicle.com>2009-05-03 14:17:24 +0000
committerDean Camera <dean@fourwalledcubicle.com>2009-05-03 14:17:24 +0000
commit01c4bef107214d5a4407a654754dc952ddd5cdba (patch)
treec21afc82e156f57618b723269492f3fdae70f778 /LUFA/Drivers/USB/HighLevel
parent6a8e27f7ee43169b9f6eb928b12e00d6306618ff (diff)
downloadlufa-01c4bef107214d5a4407a654754dc952ddd5cdba.tar.gz
lufa-01c4bef107214d5a4407a654754dc952ddd5cdba.tar.bz2
lufa-01c4bef107214d5a4407a654754dc952ddd5cdba.zip
More minor renaming of library enums and events to try to create a consistent API.
Diffstat (limited to 'LUFA/Drivers/USB/HighLevel')
-rw-r--r--LUFA/Drivers/USB/HighLevel/Events.h12
1 files changed, 7 insertions, 5 deletions
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