From 2ee9fc707784e115d744dbc229bdc893f4bb6bc1 Mon Sep 17 00:00:00 2001 From: Dean Camera Date: Mon, 18 May 2009 10:05:21 +0000 Subject: Rewritten event system to remove all macros, to make user code clearer. Fixed incorrect ENDPOINT_EPNUM_MASK mask preventing endpoints above EP3 from being selected (thanks to Jonathan Oakley). Removed STREAM_CALLBACK() macro - callbacks now use regular function definitions to clarify user code. Removed DESCRIPTOR_COMPARATOR() macro - comparators should now use regular function definitions to clarify user code. --- LUFA/Drivers/USB/LowLevel/LowLevel.h | 20 +------------------- 1 file changed, 1 insertion(+), 19 deletions(-) (limited to 'LUFA/Drivers/USB/LowLevel/LowLevel.h') diff --git a/LUFA/Drivers/USB/LowLevel/LowLevel.h b/LUFA/Drivers/USB/LowLevel/LowLevel.h index fad1cbf1f..41b0ff5f6 100644 --- a/LUFA/Drivers/USB/LowLevel/LowLevel.h +++ b/LUFA/Drivers/USB/LowLevel/LowLevel.h @@ -283,7 +283,7 @@ /* Enums: */ /** Enum for error codes relating to the powering on of the USB interface. These error codes are - * used in the ErrorCode parameter value of the \ref USB_InitFailure event. + * used in the ErrorCode parameter value of the \ref EVENT_USB_InitFailure() event. */ enum USB_InitErrorCodes_t { @@ -313,24 +313,6 @@ extern volatile uint8_t USB_Options; #endif - /* Throwable Events: */ - /** This module raises the \ref USB_Disconnect event if the USB interface is reset (such as during a mode - * change while in UID mode) while the USB interface is connected to a device when in host mode, or - * a host while in device mode. - * - * \see Events.h for more information on this event. - */ - RAISES_EVENT(USB_Disconnect); - - #if defined(USB_CAN_BE_BOTH) || defined(__DOXYGEN__) - /** This module raises the Power On Failure event when an error occurs while initializing the USB - * interface. - * - * \see Events.h for more information on this event. - */ - RAISES_EVENT(USB_InitFailure); - #endif - /* Private Interface - For use in library only: */ #if !defined(__DOXYGEN__) /* Macros: */ -- cgit v1.2.3