X-Git-Url: http://git.linex4red.de/pub/USBasp.git/blobdiff_plain/2ee9fc707784e115d744dbc229bdc893f4bb6bc1..f3e4fbe5126fc8edf40a0b0ace2d3437ee988d2e:/Bootloaders/TeensyHID/TeensyHID.h diff --git a/Bootloaders/TeensyHID/TeensyHID.h b/Bootloaders/TeensyHID/TeensyHID.h index 0dd58524b..a05729a50 100644 --- a/Bootloaders/TeensyHID/TeensyHID.h +++ b/Bootloaders/TeensyHID/TeensyHID.h @@ -47,11 +47,10 @@ #include "Descriptors.h" - #include // Library Version Information - #include // USB Functionality + #include /* Preprocessor Checks: */ - #if !defined(__AVR_AT90USB162__) + #if !defined(__AVR_AT90USB162__) && !defined(__AVR_AT90USB646__) #error This bootloader is not compatible with the selected AVR model. #endif @@ -59,10 +58,13 @@ /** HID Class specific request to send the next HID report to the device. */ #define REQ_SetReport 0x09 + /** Teensy Bootloader special address to start the user application */ #define TEENSY_STARTAPPLICATION 0xFFFF /* Function Prototypes: */ - void EVENT_USB_ConfigurationChanged(void); - void EVENT_USB_UnhandledControlPacket(void); + void SetupHardware(void); + + void EVENT_USB_Device_ConfigurationChanged(void); + void EVENT_USB_Device_UnhandledControlRequest(void); #endif