diff options
| author | Keith Packard <keithp@keithp.com> | 2009-05-01 08:14:57 -0700 | 
|---|---|---|
| committer | Keith Packard <keithp@keithp.com> | 2009-05-01 08:14:57 -0700 | 
| commit | beae3360828da21eb1a3c4f88e930f242d4e36b7 (patch) | |
| tree | 4d6a1686628fe0ffcfc83a8cbbd9d68d349abf59 | |
| parent | de7814c738488c2c16c6216c93fa78128895e5d5 (diff) | |
USB spec limits bulk endpoints to 64 byte payload max.
For full-speed devices, bulk endpoints may use 8, 16, 32 or 64 bytes, but no
more.
| -rw-r--r-- | ao_usb.h | 7 | 
1 files changed, 5 insertions, 2 deletions
| @@ -68,9 +68,12 @@  /*   * Double buffer IN and OUT EPs, so each   * gets half of the available space + * + * Ah, but USB bulk packets can only come in 8, 16, 32 and 64 + * byte sizes, so we'll use 64 for everything   */ -#define AO_USB_IN_SIZE		256 -#define AO_USB_OUT_SIZE		128 +#define AO_USB_IN_SIZE		64 +#define AO_USB_OUT_SIZE		64  #define AO_USB_EP0_IDLE		0  #define AO_USB_EP0_DATA_IN	1 | 
