projects
/
pub
/
USBasp.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Use the PDI REPEAT instruction in the PDI programmer code to reduce protocol overhead...
[pub/USBasp.git]
/
Bootloaders
/
TeensyHID
/
TeensyHID.h
diff --git
a/Bootloaders/TeensyHID/TeensyHID.h
b/Bootloaders/TeensyHID/TeensyHID.h
index
0dd5852
..
a05729a
100644
(file)
--- a/
Bootloaders/TeensyHID/TeensyHID.h
+++ b/
Bootloaders/TeensyHID/TeensyHID.h
@@
-47,11
+47,10
@@
\r
#include "Descriptors.h"
\r
\r
\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
\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
#error This bootloader is not compatible with the selected AVR model.
\r
#endif
\r
\r
@@
-59,10
+58,13
@@
/** HID Class specific request to send the next HID report to the device. */
\r
#define REQ_SetReport 0x09
\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
#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
\r
#endif
\r