Removed new Start of Frame event from the library; performance suffered far too much...
[pub/USBasp.git] / Bootloaders / TeensyHID / TeensyHID.h
index a53fca3..0dd5852 100644 (file)
@@ -41,6 +41,7 @@
                #include <avr/wdt.h>\r
                #include <avr/boot.h>\r
                #include <avr/wdt.h>\r
+               #include <avr/power.h>\r
                #include <util/delay.h>\r
                #include <stdbool.h>\r
 \r
 \r
        /* Macros: */\r
                /** HID Class specific request to send the next HID report to the device. */\r
-               #define REQ_SetReport           0x09\r
+               #define REQ_SetReport             0x09\r
                \r
-               #define TEENSY_STARTAPPLICATION 0xFFFF\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_ConfigurationChanged event when thrown by the library. */\r
-               HANDLES_EVENT(USB_ConfigurationChanged);\r
-\r
-               /** Indicates that this module will catch the USB_UnhandledControlPacket event when thrown by the library. */\r
-               HANDLES_EVENT(USB_UnhandledControlPacket);\r
+               #define TEENSY_STARTAPPLICATION   0xFFFF\r
+               \r
+       /* Function Prototypes: */\r
+               void EVENT_USB_ConfigurationChanged(void);\r
+               void EVENT_USB_UnhandledControlPacket(void);\r
                \r
 #endif\r