Add explicit support for the AT90USB646 to the Teensy bootloader now that PJRC have released the Teensy++ board.
Ensure unfinished SideShow demo uses an unallocated PID value within the LUFA range.
#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
char* ReportString = NULL;\r
static bool ActionSent = false;\r
\r
- char* JoystickStrings[] =\r
+ char* const JoystickStrings[] =\r
{\r
"Joystick Up\r\n",\r
"Joystick Down\r\n",\r
char* ReportString = NULL;\r
static bool ActionSent = false;\r
\r
- char* JoystickStrings[] =\r
+ char* const JoystickStrings[] =\r
{\r
"Joystick Up\r\n",\r
"Joystick Down\r\n",\r
Endpoint0Size: 8,\r
\r
VendorID: 0x03EB,\r
- ProductID: 0xDC03,\r
+ ProductID: 0x2060,\r
ReleaseNumber: 0x0000,\r
\r
ManufacturerStrIndex: 0x01,\r
USB_DeviceState = DEVICE_STATE_Powered;\r
EVENT_USB_Connect();\r
#else\r
- USB_DeviceState = DEVICE_STATE_Configured;\r
+ USB_DeviceState = (USB_ConfigurationNumber) ? DEVICE_STATE_Configured : DEVICE_STATE_Addressed;\r
EVENT_USB_WakeUp(); \r
#endif\r
}\r