mirror of
https://github.com/apache/nuttx.git
synced 2026-06-07 17:33:08 +08:00
USB host CDC/ACM driver requires CONFIG_SERIAL_REMOVABLE
This commit is contained in:
@@ -99,6 +99,10 @@
|
||||
# warning Asynchronous transfer support is required (CONFIG_USBHOST_ASYNCH)
|
||||
#endif
|
||||
|
||||
#ifndef CONFIG_SERIAL_REMOVABLE
|
||||
# warning Removable serial device support is required (CONFIG_SERIAL_REMOVABLE)
|
||||
#endif
|
||||
|
||||
#ifdef CONFIG_USBHOST_CDCACM_NTDELAY
|
||||
# define USBHOST_CDCACM_NTDELAY MSEC2TICK(CONFIG_USBHOST_CDCACM_NTDELAY)
|
||||
#else
|
||||
@@ -2102,6 +2106,12 @@ static int usbhost_disconnected(struct usbhost_class_s *usbclass)
|
||||
flags = irqsave();
|
||||
priv->disconnected = true;
|
||||
|
||||
/* Let the upper half driver know that serial device is no longer
|
||||
* connected.
|
||||
*/
|
||||
|
||||
uart_connected(&priv->uartdev, false);
|
||||
|
||||
/* Cancel any ongoing Bulk transfers */
|
||||
|
||||
ret = DRVR_CANCEL(hport->drvr, priv->bulkin);
|
||||
|
||||
Reference in New Issue
Block a user