Rewritten event system to remove all macros, to make user code clearer.
[pub/USBasp.git] / Bootloaders / DFU / BootloaderDFU.h
index e996f2b..a78d80d 100644 (file)
                        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 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