Added HID class bootloader, compatible with a modified version of the command line Teensy loader from PJRC.com.
This commit is contained in:
parent
5430e1973c
commit
cae0fa73d7
16 changed files with 4522 additions and 8 deletions
|
@ -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)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue