Use the PDI REPEAT instruction in the PDI programmer code to reduce protocol overhead...
[pub/USBasp.git] / Bootloaders / TeensyHID / TeensyHID.h
index 0dd5852..a05729a 100644 (file)
 \r
                #include "Descriptors.h"\r
 \r
-               #include <LUFA/Version.h>                    // Library Version Information\r
-               #include <LUFA/Drivers/USB/USB.h>            // USB Functionality\r
+               #include <LUFA/Drivers/USB/USB.h>\r
                \r
        /* Preprocessor Checks: */\r
-               #if !defined(__AVR_AT90USB162__)\r
+               #if !defined(__AVR_AT90USB162__) && !defined(__AVR_AT90USB646__)\r
                        #error This bootloader is not compatible with the selected AVR model.\r
                #endif\r
 \r
                /** HID Class specific request to send the next HID report to the device. */\r
                #define REQ_SetReport             0x09\r
                \r
+               /** Teensy Bootloader special address to start the user application */\r
                #define TEENSY_STARTAPPLICATION   0xFFFF\r
                \r
        /* Function Prototypes: */\r
-               void EVENT_USB_ConfigurationChanged(void);\r
-               void EVENT_USB_UnhandledControlPacket(void);\r
+               void SetupHardware(void);\r
+\r
+               void EVENT_USB_Device_ConfigurationChanged(void);\r
+               void EVENT_USB_Device_UnhandledControlRequest(void);\r
                \r
 #endif\r