diff options
author | Gregory Nutt <gnutt@nuttx.org> | 2013-09-05 18:00:16 -0600 |
---|---|---|
committer | Gregory Nutt <gnutt@nuttx.org> | 2013-09-05 18:00:16 -0600 |
commit | 26b761fcac72cb7b46740b5a92fd8ff27eb947b7 (patch) | |
tree | 327180bba6b952a1f75debd554f3511d430c31c3 /nuttx/include | |
parent | ab4232e290cde4cb2126cea27b45f8f95bfab854 (diff) | |
download | px4-nuttx-26b761fcac72cb7b46740b5a92fd8ff27eb947b7.tar.gz px4-nuttx-26b761fcac72cb7b46740b5a92fd8ff27eb947b7.tar.bz2 px4-nuttx-26b761fcac72cb7b46740b5a92fd8ff27eb947b7.zip |
CDC/ACM and PL2303 device drivers: Don't use the max packet size assigned to an endpoint in order to determine the request buffer size. The endpoint has not yet been configured that max packet size may be wrong.
Diffstat (limited to 'nuttx/include')
-rw-r--r-- | nuttx/include/nuttx/usb/cdcacm.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/nuttx/include/nuttx/usb/cdcacm.h b/nuttx/include/nuttx/usb/cdcacm.h index 4e331b569..165d38fb3 100644 --- a/nuttx/include/nuttx/usb/cdcacm.h +++ b/nuttx/include/nuttx/usb/cdcacm.h @@ -140,7 +140,11 @@ #endif #ifndef CONFIG_CDCACM_BULKIN_REQLEN -# define CONFIG_CDCACM_BULKIN_REQLEN 96 +# ifdef CONFIG_USBDEV_DUALSPEED +# define CONFIG_CDCACM_BULKIN_REQLEN (3 * CONFIG_CDCACM_EPBULKIN_FSSIZE / 2) +# else +# define CONFIG_CDCACM_BULKIN_REQLEN (3 * CONFIG_CDCACM_EPBULKIN_FSSIZE / 2) +# endif #endif /* Endpoint number and size (in bytes) of the CDC host-to-device (OUT) data |