usb: cdc_acm: Use 2 instead of 4 for IN BULK endpoint

The highest endpoint number supported by the STM32F4xx USB device
controller is 3.  Change the cdc_acm driver to use endpoint 2
instead of endpoint 4 so that it will work with this platform.

Change-Id: I4a3cd08f546a7fe01558528de0990156f642d93b
Signed-off-by: Christer Weinigel <christer@weinigel.se>
This commit is contained in:
Christer Weinigel 2017-01-18 14:15:19 +01:00 committed by Kumar Gala
commit cc93aceb83

View file

@ -84,7 +84,7 @@ struct cdc_acm_notification {
#define CDC_ENDP_INT 0x81
#define CDC_ENDP_OUT 0x03
#define CDC_ENDP_IN 0x84
#define CDC_ENDP_IN 0x82
/* Decriptor size in bytes */
#define USB_HFUNC_DESC_SIZE 5 /* Header Functional Descriptor */