Added HID class bootloader, compatible with a modified version of the command line Teensy loader from PJRC.com.

This commit is contained in:
Dean Camera 2011-02-09 21:34:00 +00:00
parent 5430e1973c
commit cae0fa73d7
16 changed files with 4522 additions and 8 deletions

View file

@ -127,6 +127,13 @@ void EVENT_USB_Device_ConfigurationChanged(void)
*/
void EVENT_USB_Device_ControlRequest(void)
{
/* Ignore any requests that aren't directed to the CDC interface */
if ((USB_ControlRequest.bmRequestType & (CONTROL_REQTYPE_TYPE | CONTROL_REQTYPE_RECIPIENT)) !=
(REQTYPE_CLASS | REQREC_INTERFACE))
{
return;
}
/* Process CDC specific control requests */
switch (USB_ControlRequest.bRequest)
{