icE1usb: Fix ordering of USB interface numbers

The USB spec requires interface numbers to be in sequential order,
and the existing firmware fails that requirement, as is shown by
the Chapter9 test suite ("USB30CV").

With this patch applied, the USB30CV Chapter9 test suite passes.

Change-Id: I6a5434447ee20f77ce0ba9e7b1884cbd5b466439
This commit is contained in:
Harald Welte 2022-02-01 17:26:38 +01:00
parent fdfabf93f5
commit fddf5990bd
1 changed files with 3 additions and 3 deletions

View File

@ -8,9 +8,9 @@
#pragma once
#define USB_INTF_E1(p) (0 + (p))
#define USB_INTF_DFU 2
#define USB_INTF_GPS_CDC_CTL 3
#define USB_INTF_GPS_CDC_DATA 4
#define USB_INTF_GPS_CDC_CTL 2
#define USB_INTF_GPS_CDC_DATA 3
#define USB_INTF_DFU 4
#define USB_INTF_NUM 5
#define USB_EP_E1_IN(p) (0x82 + (3 * (p)))