/* Includes: */\r
#include <avr/io.h>\r
\r
- #include <LUFA/Common/Common.h> // Commonly used macros\r
- #include <LUFA/Drivers/USB/USB.h> // USB Functionality\r
- #include <LUFA/Drivers/Board/LEDs.h> // LED driver\r
- #include <LUFA/Drivers/Peripheral/Serial_Stream.h> // USART Stream driver\r
- #include <LUFA/Drivers/Misc/TerminalCodes.h> // ANSI Terminal Escape Codes\r
- #include <LUFA/Scheduler/Scheduler.h> // Simple scheduler for task management\r
-\r
- /* Event Catch List: */\r
- /** Indicates that this module will catch the USB_VBUSChange event when thrown by the library. */\r
- HANDLES_EVENT(USB_VBUSChange);\r
-\r
- /** Indicates that this module will catch the USB_VBUSConnect event when thrown by the library. */\r
- HANDLES_EVENT(USB_VBUSConnect);\r
-\r
- /** Indicates that this module will catch the USB_VBUSDisconnect event when thrown by the library. */\r
- HANDLES_EVENT(USB_VBUSDisconnect);\r
-\r
- /** Indicates that this module will catch the USB_Connect event when thrown by the library. */\r
- HANDLES_EVENT(USB_Connect);\r
-\r
- /** Indicates that this module will catch the USB_Disconnect event when thrown by the library. */\r
- HANDLES_EVENT(USB_Disconnect);\r
-\r
- /** Indicates that this module will catch the USB_Suspend event when thrown by the library. */\r
- HANDLES_EVENT(USB_Suspend);\r
-\r
- /** Indicates that this module will catch the USB_WakeUp event when thrown by the library. */\r
- HANDLES_EVENT(USB_WakeUp);\r
-\r
- /** Indicates that this module will catch the USB_Reset event when thrown by the library. */\r
- HANDLES_EVENT(USB_Reset);\r
-\r
- /** Indicates that this module will catch the USB_UIDChange event when thrown by the library. */\r
- HANDLES_EVENT(USB_UIDChange);\r
-\r
- /** Indicates that this module will catch the USB_PowerOnFail event when thrown by the library. */\r
- HANDLES_EVENT(USB_PowerOnFail);\r
-\r
- /** Indicates that this module will catch the USB_HostError event when thrown by the library. */\r
- HANDLES_EVENT(USB_HostError);\r
-\r
- /** Indicates that this module will catch the USB_DeviceEnumerationFailed event when thrown by the library. */\r
- HANDLES_EVENT(USB_DeviceEnumerationFailed);\r
-\r
- /** Indicates that this module will catch the USB_DeviceError event when thrown by the library. */\r
- HANDLES_EVENT(USB_DeviceError);\r
-\r
- /** Indicates that this module will catch the USB_UnhandledControlPacket event when thrown by the library. */\r
- HANDLES_EVENT(USB_UnhandledControlPacket);\r
-\r
- /** Indicates that this module will catch the USB_ConfigurationChanged event when thrown by the library. */\r
- HANDLES_EVENT(USB_ConfigurationChanged);\r
-\r
- /** Indicates that this module will catch the USB_DeviceAttached event when thrown by the library. */\r
- HANDLES_EVENT(USB_DeviceAttached);\r
-\r
- /** Indicates that this module will catch the USB_DeviceUnattached event when thrown by the library. */\r
- HANDLES_EVENT(USB_DeviceUnattached);\r
+ #include <LUFA/Common/Common.h>\r
+ #include <LUFA/Drivers/USB/USB.h>\r
+ #include <LUFA/Drivers/Board/LEDs.h>\r
+ #include <LUFA/Drivers/Peripheral/SerialStream.h>\r
+ #include <LUFA/Drivers/Misc/TerminalCodes.h>
\r
/* Macros: */\r
/** Prefix sent through the USART when an even fires before the actual event message. */\r
static void Abort_Program(void) ATTR_NO_RETURN;\r
#endif\r
\r
+ void EVENT_USB_InitFailure(const uint8_t ErrorCode);\r
+ void EVENT_USB_UIDChange(void);\r
+ void EVENT_USB_Host_HostError(const uint8_t ErrorCode);\r
+ void EVENT_USB_Host_DeviceAttached(void);\r
+ void EVENT_USB_Host_DeviceUnattached(void);\r
+ void EVENT_USB_Host_DeviceEnumerationFailed(const uint8_t ErrorCode, const uint8_t SubErrorCode);\r
+ void EVENT_USB_Host_DeviceEnumerationComplete(void);\r
+ void EVENT_USB_Device_Connect(void);\r
+ void EVENT_USB_Device_Disconnect(void);\r
+ void EVENT_USB_Device_ConfigurationChanged(void);\r
+ void EVENT_USB_Device_ConfigurationChanged(void);\r
+ void EVENT_USB_Device_Suspend(void);\r
+ void EVENT_USB_Device_WakeUp(void);\r
+ void EVENT_USB_Device_Reset(void); \r
+ \r
#endif\r