void usbmsc_resetconfig(FAR struct usbmsc_dev_s *priv) { /* Are we configured? */ if (priv->config != USBMSC_CONFIGIDNONE) { /* Yes.. but not anymore */ priv->config = USBMSC_CONFIGIDNONE; /* Disable endpoints. This should force completion of all pending * transfers. */ EP_DISABLE(priv->epbulkin); EP_DISABLE(priv->epbulkout); } }
static void usbclass_resetconfig(struct apbridge_dev_s *priv) { /* Are we configured? */ if (priv->config != APBRIDGE_CONFIGIDNONE) { /* Yes.. but not anymore */ priv->config = APBRIDGE_CONFIGIDNONE; /* Disable endpoints. This should force completion of all pending * transfers. */ EP_DISABLE(priv->epintin); EP_DISABLE(priv->epbulkin); EP_DISABLE(priv->epbulkout); } }