mirror of
https://github.com/apache/nuttx.git
synced 2026-08-04 22:00:21 +00:00
usbhost: fixed cdcacm issue
1. fixed cdcacm build issue 2. unregister uart driver when usbhost destroy Signed-off-by: zhangyuan21 <zhangyuan21@xiaomi.com>
This commit is contained in:
parent
7e3e99c940
commit
4ddcb88c65
1 changed files with 4 additions and 5 deletions
|
|
@ -1223,7 +1223,7 @@ static void usbhost_destroy(FAR void *arg)
|
|||
/* Unregister the serial lower half driver */
|
||||
|
||||
usbhost_mkdevname(priv, devname);
|
||||
#warning Missing logic
|
||||
unregister_driver(devname);
|
||||
|
||||
/* Release the device name used by this connection */
|
||||
|
||||
|
|
@ -2661,11 +2661,10 @@ static bool usbhost_rxflowcontrol(FAR struct uart_dev_s *uartdev,
|
|||
unsigned int nbuffered, bool upper)
|
||||
{
|
||||
FAR struct usbhost_cdcacm_s *priv;
|
||||
bool newrts;
|
||||
int ret;
|
||||
|
||||
DEBUGASSERT(uartdev && uartdev->priv);
|
||||
priv = (FAR struct usbhost_cdcacm_s *)uartdev->priv
|
||||
priv = (FAR struct usbhost_cdcacm_s *)uartdev->priv;
|
||||
|
||||
/* Is RX flow control enabled? */
|
||||
|
||||
|
|
@ -2713,9 +2712,9 @@ static bool usbhost_rxflowcontrol(FAR struct uart_dev_s *uartdev,
|
|||
DEBUGASSERT(ret >= 0);
|
||||
UNUSED(ret);
|
||||
}
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
return false;
|
||||
}
|
||||
#endif
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue