usbhost_cdcacm: add CDC_SUBCLASS_ACM and CDC_PROTO_ATM to supported class and proto

This commit is contained in:
Janne Rosberg 2016-11-30 12:20:23 -06:00 committed by Gregory Nutt
parent 4b282f219a
commit 8442bf66b9
1 changed files with 17 additions and 8 deletions

View File

@ -392,13 +392,22 @@ static bool usbhost_txempty(FAR struct uart_dev_s *uartdev);
* device.
*/
static const const struct usbhost_id_s g_id =
static const const struct usbhost_id_s g_id[2] =
{
USB_CLASS_CDC, /* base */
CDC_SUBCLASS_NONE, /* subclass */
CDC_PROTO_NONE, /* proto */
0, /* vid */
0 /* pid */
{
USB_CLASS_CDC, /* base */
CDC_SUBCLASS_NONE, /* subclass */
CDC_PROTO_NONE, /* proto */
0, /* vid */
0 /* pid */
},
{
USB_CLASS_CDC, /* base */
CDC_SUBCLASS_ACM, /* subclass */
CDC_PROTO_ATM, /* proto */
0, /* vid */
0 /* pid */
}
};
/* This is the USB host CDC/ACM class's registry entry */
@ -407,8 +416,8 @@ static struct usbhost_registry_s g_cdcacm =
{
NULL, /* flink */
usbhost_create, /* create */
1, /* nids */
&g_id /* id[] */
2, /* nids */
&g_id[0] /* id[] */
};
/* Serial driver lower half interface */