summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChrister Weinigel <christer@weinigel.se>2017-01-18 14:15:19 +0100
committerKumar Gala <kumar.gala@linaro.org>2017-04-28 18:48:58 +0000
commitcc93aceb83642a83105a634cf4847d5d563bd2b2 (patch)
tree996465a24f4e9fdecdaa75b1f456a9d2930d4b59
parentf338a16dee9a749729d670a3758f43d731e8e2d7 (diff)
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>
-rw-r--r--subsys/usb/class/cdc_acm.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/subsys/usb/class/cdc_acm.h b/subsys/usb/class/cdc_acm.h
index d151d4bf0..901e92e68 100644
--- a/subsys/usb/class/cdc_acm.h
+++ b/subsys/usb/class/cdc_acm.h
@@ -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 */