Skip to content

Commit

Permalink
Document wRequestAndType 0x0680 & 0x0681 cases
Browse files Browse the repository at this point in the history
This case corresponds bmRequestType=0x80/0x81 & bRequest=GET_DESCRIPTOR(0x06) as documented on https://www.beyondlogic.org/usbnutshell/usb6.shtml
  • Loading branch information
forderud committed Oct 28, 2024
1 parent 7d7fb67 commit 0ccd8dd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions teensy4/usb.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 0ccd8dd

Please sign in to comment.