update host class driver struct: add hport.

This commit is contained in:
aozima
2022-03-19 11:23:40 +08:00
committed by sakumisu
parent fd574baeb7
commit 5e455c2331
6 changed files with 15 additions and 6 deletions

View File

@@ -338,6 +338,7 @@ int usbh_msc_connect(struct usbh_hubport *hport, uint8_t intf)
}
memset(msc_class, 0, sizeof(struct usbh_msc));
msc_class->hport = hport;
usbh_msc_devno_alloc(msc_class);
snprintf(hport->config.intf[intf].devname, CONFIG_USBHOST_DEV_NAMELEN, DEV_FORMAT, msc_class->sdchar);
@@ -427,4 +428,4 @@ const struct usbh_class_driver msc_class_driver = {
.driver_name = "msc",
.connect = usbh_msc_connect,
.disconnect = usbh_msc_disconnect
};
};