- dummy SetInterface handling added

This commit is contained in:
Wiesner András 2024-04-27 22:11:33 +02:00
parent a0d3b6f9c2
commit c9d8a42872

6
usb.c
View File

@ -167,6 +167,12 @@ void usbcore_process_setup_pckt(const uint8_t *data, uint16_t size, uint8_t stag
USBDRV_ARM_IN_ZLP(0); USBDRV_ARM_IN_ZLP(0);
break; break;
} }
case UREQ_SetInterface: // SET INTERFACE
{
// TODO: set configuration
USBDRV_ARM_IN_ZLP(0);
break;
}
default: { // UNKNOWN REQUEST, pass processing to user application default: { // UNKNOWN REQUEST, pass processing to user application
USB_CallbackEvent cbevt = { 0 }; USB_CallbackEvent cbevt = { 0 };
cbevt.type = USB_CBEVT_UNKNOWN_REQ; cbevt.type = USB_CBEVT_UNKNOWN_REQ;