src/main: reorder interfaces, so debug+vcp are after regular interfaces

endpoints 0x05 and 0x85 cause halt for now, allocate them to yet unused debug interface
This commit is contained in:
Pavol Rusnak 2018-02-07 16:04:44 +01:00
parent 39576eb2a7
commit c4990646c7
No known key found for this signature in database
GPG Key ID: 91F3B339B9A02A3D
1 changed files with 10 additions and 10 deletions

View File

@ -19,9 +19,9 @@ usb_wire = io.WebUSB(
)
usb_u2f = io.HID(
iface_num=3,
ep_in=0x84,
ep_out=0x03,
iface_num=1,
ep_in=0x82,
ep_out=0x02,
report_desc=bytes([
0x06, 0xd0, 0xf1, # USAGE_PAGE (FIDO Alliance)
0x09, 0x01, # USAGE (U2F HID Authenticator Device)
@ -44,16 +44,16 @@ usb_u2f = io.HID(
if __debug__:
usb_debug = io.WebUSB(
iface_num=4,
iface_num=2,
ep_in=0x85,
ep_out=0x04,
ep_out=0x05,
)
usb_vcp = io.VCP(
iface_num=1,
data_iface_num=2,
ep_in=0x82,
ep_out=0x02,
ep_cmd=0x83,
iface_num=3,
data_iface_num=4,
ep_in=0x83,
ep_out=0x03,
ep_cmd=0x84,
)
usb = io.USB(