X-Git-Url: http://git.linex4red.de/pub/USBasp.git/blobdiff_plain/4a09da20989dfe0c41dc1272fa6dce1e11539c15..5ca1d7bf8f1aa774c076b614fa692c2026d7e854:/Bootloaders/TeensyHID/TeensyHID.h diff --git a/Bootloaders/TeensyHID/TeensyHID.h b/Bootloaders/TeensyHID/TeensyHID.h index a4773f8f5..3c5960595 100644 --- a/Bootloaders/TeensyHID/TeensyHID.h +++ b/Bootloaders/TeensyHID/TeensyHID.h @@ -47,28 +47,24 @@ #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 /* Macros: */ /** HID Class specific request to send the next HID report to the device. */ - #define REQ_SetReport 0x09 + #define REQ_SetReport 0x09 - #define TEENSY_STARTAPPLICATION 0xFFFF - - /* Event Handlers: */ - /** Indicates that this module will catch the USB_Disconnect event when thrown by the library. */ - HANDLES_EVENT(USB_Disconnect); - - /** Indicates that this module will catch the USB_ConfigurationChanged event when thrown by the library. */ - HANDLES_EVENT(USB_ConfigurationChanged); + /** Teensy Bootloader special address to start the user application */ + #define TEENSY_STARTAPPLICATION 0xFFFF + + /* Function Prototypes: */ + void SetupHardware(void); - /** Indicates that this module will catch the USB_UnhandledControlPacket event when thrown by the library. */ - HANDLES_EVENT(USB_UnhandledControlPacket); + void EVENT_USB_ConfigurationChanged(void); + void EVENT_USB_UnhandledControlPacket(void); #endif