mirror of
https://github.com/apache/nuttx.git
synced 2026-05-21 04:52:02 +08:00
usb: If usb3.0, set the ep0 sssize to cfgdescsize
Signed-off-by: yangsong8 <yangsong8@xiaomi.com>
This commit is contained in:
@@ -1377,6 +1377,9 @@ static int usbdev_fs_classbind(FAR struct usbdevclass_driver_s *driver,
|
||||
ep0info.fssize = fs->cdev->cfgdescsize;
|
||||
#ifdef CONFIG_USBDEV_DUALSPEED
|
||||
ep0info.hssize = fs->cdev->cfgdescsize;
|
||||
#endif
|
||||
#ifdef CONFIG_USBDEV_SUPERSPEED
|
||||
ep0info.sssize = fs->cdev->cfgdescsize;
|
||||
#endif
|
||||
ep0info.reqnum = CONFIG_USBDEV_FS_NEP0REQS;
|
||||
fs->eps[0].dev = fs;
|
||||
|
||||
Reference in New Issue
Block a user