- #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