summaryrefslogtreecommitdiff
path: root/src/kernel/ao_product.c
diff options
context:
space:
mode:
authorBdale Garbee <bdale@gag.com>2015-07-16 13:31:42 -0600
committerBdale Garbee <bdale@gag.com>2015-07-16 13:31:42 -0600
commit6e9bb9178356620bd47d9f2e31abf42b7f1a8f11 (patch)
tree6f04b5500462d1f6e26ebcba58c5e9cd56afd442 /src/kernel/ao_product.c
parente2cefd8593d269ce603aaf33f4a53a5c2dcb3350 (diff)
parent87c8bb3956897830da1f7aaca2990a9571767b73 (diff)
Merge branch 'master' into branch-1.6
Diffstat (limited to 'src/kernel/ao_product.c')
-rw-r--r--src/kernel/ao_product.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/kernel/ao_product.c b/src/kernel/ao_product.c
index b9327bac..c711a4d2 100644
--- a/src/kernel/ao_product.c
+++ b/src/kernel/ao_product.c
@@ -33,6 +33,10 @@ const char ao_product[] = AO_iProduct_STRING;
#define AO_USB_MAX_POWER 100
#endif
+#ifndef AO_USB_INTERFACE_CLASS
+#define AO_USB_INTERFACE_CLASS 0x02
+#endif
+
#include "ao_usb.h"
/* USB descriptors in one giant block of bytes */
AO_ROMCONFIG_SYMBOL(0x00aa) uint8_t ao_usb_descriptors [] =
@@ -45,7 +49,7 @@ AO_ROMCONFIG_SYMBOL(0x00aa) uint8_t ao_usb_descriptors [] =
0x00, /* bDeviceSubClass */
0x00, /* bDeviceProtocol */
AO_USB_CONTROL_SIZE, /* bMaxPacketSize */
- LE_WORD(0xFFFE), /* idVendor */
+ LE_WORD(AO_idVendor_NUMBER), /* idVendor */
LE_WORD(AO_idProduct_NUMBER), /* idProduct */
LE_WORD(0x0100), /* bcdDevice */
0x01, /* iManufacturer */
@@ -69,7 +73,7 @@ AO_ROMCONFIG_SYMBOL(0x00aa) uint8_t ao_usb_descriptors [] =
0x00, /* bInterfaceNumber */
0x00, /* bAlternateSetting */
0x01, /* bNumEndPoints */
- 0x02, /* bInterfaceClass */
+ AO_USB_INTERFACE_CLASS, /* bInterfaceClass */
0x02, /* bInterfaceSubClass */
0x01, /* bInterfaceProtocol, linux requires value of 1 for the cdc_acm module */
0x00, /* iInterface */