From 0ccd8ddc5a313871ef82effe8fb304dcf8fae1b5 Mon Sep 17 00:00:00 2001 From: Fredrik Orderud Date: Sat, 21 Sep 2024 21:35:34 +0200 Subject: [PATCH] Document wRequestAndType 0x0680 & 0x0681 cases This case corresponds bmRequestType=0x80/0x81 & bRequest=GET_DESCRIPTOR(0x06) as documented on https://www.beyondlogic.org/usbnutshell/usb6.shtml --- teensy4/usb.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/teensy4/usb.c b/teensy4/usb.c index ed2d6b812..f60cf63e3 100644 --- a/teensy4/usb.c +++ b/teensy4/usb.c @@ -536,8 +536,8 @@ static void endpoint0_setup(uint64_t setupdata) setup.wIndex |= 0xEE00; // alter wIndex and treat as normal USB descriptor __attribute__((fallthrough)); #endif - case 0x0680: // GET_DESCRIPTOR - case 0x0681: + case 0x0680: // GET_DESCRIPTOR (bRequest=0x06) for device (bmRequestType=0x80) + case 0x0681: // GET_DESCRIPTOR (bRequest=0x06) for interface (bmRequestType=0x81) for (list = usb_descriptor_list; list->addr != NULL; list++) { if (setup.wValue == list->wValue && setup.wIndex == list->wIndex) { uint32_t datalen;