For emulation, support --vidpid at runtime.

This commit is contained in:
NIIBE Yutaka
2017-10-06 10:20:54 +09:00
parent 94424e85c3
commit be80a3ef2f
5 changed files with 51 additions and 8 deletions

View File

@@ -59,7 +59,10 @@ static const uint8_t hid_report_desc[] = {
#define USB_CCID_DATA_SIZE 64
/* USB Standard Device Descriptor */
static const uint8_t device_desc[] = {
#if !defined(GNU_LINUX_EMULATION)
static const
#endif
uint8_t device_desc[] = {
18, /* bLength */
DEVICE_DESCRIPTOR, /* bDescriptorType */
0x10, 0x01, /* bcdUSB = 1.1 */