\r
#include "Descriptors.h"\r
\r
- #include <LUFA/Drivers/USB/USB.h> // USB Functionality\r
- \r
- /* Preprocessor Checks: */\r
- #if !defined(SIGNATURE_0) || !defined(SIGNATURE_1) || !defined(SIGNATURE_2)\r
- #error Device signature byte constants are not defined due to outdated avr-libc version. See demo documentation.\r
- #endif\r
+ #include <LUFA/Drivers/USB/USB.h>\r
\r
/* Macros: */\r
/** Configuration define. Define this token to true to case the bootloader to reject all memory commands\r
errUNKNOWN = 14,\r
errSTALLEDPKT = 15\r
};\r
- \r
- /* Event Handlers: */\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_UnhandledControlPacket event when thrown by the library. */\r
- HANDLES_EVENT(USB_UnhandledControlPacket);\r
- \r
+ \r
/* Function Prototypes: */\r
+ void SetupHardware(void);\r
+ void ResetHardware(void);\r
+\r
+ void EVENT_USB_Disconnect(void);\r
+ void EVENT_USB_UnhandledControlPacket(void);\r
+\r
#if defined(INCLUDE_FROM_BOOTLOADER_C)\r
static void DiscardFillerBytes(uint8_t NumberOfBytes);\r
static void ProcessBootloaderCommand(void);\r