usbhost_cdcacm: add CDC_SUBCLASS_ACM and CDC_PROTO_ATM to supported class and proto
This commit is contained in:
parent
4b282f219a
commit
8442bf66b9
|
@ -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 */
|
||||
|
|
Loading…
Reference in New Issue