summaryrefslogtreecommitdiff
path: root/src/device
diff options
context:
space:
mode:
authorhathach <[email protected]>2018-07-02 17:32:09 +0700
committerhathach <[email protected]>2018-07-02 17:32:09 +0700
commit1faf0a81e4ef7176f152165fe46ff65b598d09ce (patch)
tree32f7285d39e3db3083309924131f916aa30a82f5 /src/device
parent1ee2bee5c8bc997c107ed1d1f03db183f513df42 (diff)
clean up
Diffstat (limited to 'src/device')
-rw-r--r--src/device/usbd_desc.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/device/usbd_desc.c b/src/device/usbd_desc.c
index 860b7c55b..e5bb49676 100644
--- a/src/device/usbd_desc.c
+++ b/src/device/usbd_desc.c
@@ -324,7 +324,7 @@ desc_auto_cfg_t const _desc_auto_config_struct =
.bEndpointAddress = EP_CDC_OUT,
.bmAttributes = { .xfer = TUSB_XFER_BULK },
.wMaxPacketSize = { .size = EP_CDC_SIZE },
- .bInterval = 0
+ .bInterval = 0
},
.ep_in =
@@ -352,7 +352,7 @@ desc_auto_cfg_t const _desc_auto_config_struct =
.bInterfaceClass = TUSB_CLASS_MSC,
.bInterfaceSubClass = MSC_SUBCLASS_SCSI,
.bInterfaceProtocol = MSC_PROTOCOL_BOT,
- .iInterface = 0x05
+ .iInterface = 0 // ITF_NUM_MSC + 3
},
.ep_out =
@@ -390,7 +390,7 @@ desc_auto_cfg_t const _desc_auto_config_struct =
.bInterfaceClass = TUSB_CLASS_HID,
.bInterfaceSubClass = HID_SUBCLASS_BOOT,
.bInterfaceProtocol = HID_PROTOCOL_KEYBOARD,
- .iInterface = 0x05
+ .iInterface = ITF_NUM_HID_KEYBOARD + 3,
},
.keyboard_hid =
@@ -427,7 +427,7 @@ desc_auto_cfg_t const _desc_auto_config_struct =
.bInterfaceClass = TUSB_CLASS_HID,
.bInterfaceSubClass = HID_SUBCLASS_BOOT,
.bInterfaceProtocol = HID_PROTOCOL_MOUSE,
- .iInterface = 0x06
+ .iInterface = ITF_NUM_HID_MOUSE+3
},
.mouse_hid =