remote-sim host tools: Auto-discover the endpoint addresses

We now auto-discover the end-point addresses based on the interface
descriptor.  The user can also use the new "--interface" command line
argument to set a non-zero intrerface.  In combination, this should
enable support for the remote-sim functionality on the second UART
on OWHW.
This commit is contained in:
Harald Welte
2016-03-19 21:28:09 +01:00
parent 095ac6cbe2
commit 236caf68eb
6 changed files with 124 additions and 27 deletions

View File

@@ -4,10 +4,4 @@
#define SIMTRACE_USB_VENDOR 0x1d50
#define SIMTRACE_USB_PRODUCT 0x60e3
/* FIXME: automatically determine those values based on the usb config /
* interface descriptors */
#define SIMTRACE_OUT_EP 0x04
#define SIMTRACE_IN_EP 0x85
#define SIMTRACE_INT_EP 0x86
#endif