This is an automated email from the ASF dual-hosted git repository.
kasjer pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/mynewt-core.git
The following commit(s) were added to refs/heads/master by this push:
new 452da7a80 tinyusb: Change default endpoint for CDC
452da7a80 is described below
commit 452da7a80fcf28c1c15aa2b274a56f0c7caf9806
Author: Jerzy Kasenberg <[email protected]>
AuthorDate: Fri Oct 9 12:15:41 2026 +0200
tinyusb: Change default endpoint for CDC
For some devices, CDC enpoint allocation was:
- 0xO1 OUT (bulk)
- 0x82 IN (bulk)
- 0x81 Notify (interrupt)
It turnes out that with this allocation where
0x81 and 0x01 numbers are of different type
internal table for maping endpoints to drivers
can contain less entries that it could
if value for 0x01 and 0x81 were of the same
type (bulk)
This makes IN/OUT endpint for CDC have same
endpoint number (IN is orred with 0x80)
With this changes it is possible to have
devices with 2 CDC, one MSC and AUDIO,
that would not be possible before.
Signed-off-by: Jerzy Kasenberg <[email protected]>
---
hw/usb/tinyusb/lpc55/include/tusb_hw.h | 2 +-
hw/usb/tinyusb/stm32_fsdev/stm32f3/include/tusb_hw.h | 2 +-
hw/usb/tinyusb/stm32_fsdev/stm32g0/include/tusb_hw.h | 2 +-
hw/usb/tinyusb/stm32_fsdev/stm32g4/include/tusb_hw.h | 2 +-
hw/usb/tinyusb/stm32_fsdev/stm32h5/include/tusb_hw.h | 2 +-
hw/usb/tinyusb/stm32_fsdev/stm32l0/include/tusb_hw.h | 2 +-
hw/usb/tinyusb/stm32_fsdev/stm32wb55/include/tusb_hw.h | 2 +-
hw/usb/tinyusb/synopsys/include/tusb_hw.h | 2 +-
8 files changed, 8 insertions(+), 8 deletions(-)
diff --git a/hw/usb/tinyusb/lpc55/include/tusb_hw.h
b/hw/usb/tinyusb/lpc55/include/tusb_hw.h
index 55eaa57a1..27aa2a67f 100644
--- a/hw/usb/tinyusb/lpc55/include/tusb_hw.h
+++ b/hw/usb/tinyusb/lpc55/include/tusb_hw.h
@@ -44,7 +44,7 @@
#if defined(MYNEWT_VAL_USBD_CDC_DATA_OUT_EP)
#define USBD_CDC_DATA_OUT_EP MYNEWT_VAL(USBD_CDC_DATA_OUT_EP)
#else
-#define USBD_CDC_DATA_OUT_EP 0x01
+#define USBD_CDC_DATA_OUT_EP 0x02
#endif
#if defined(MYNEWT_VAL_USBD_CDC_DATA_IN_EP)
diff --git a/hw/usb/tinyusb/stm32_fsdev/stm32f3/include/tusb_hw.h
b/hw/usb/tinyusb/stm32_fsdev/stm32f3/include/tusb_hw.h
index 14dc7f2f0..edc8aae55 100644
--- a/hw/usb/tinyusb/stm32_fsdev/stm32f3/include/tusb_hw.h
+++ b/hw/usb/tinyusb/stm32_fsdev/stm32f3/include/tusb_hw.h
@@ -41,7 +41,7 @@
#if defined(MYNEWT_VAL_USBD_CDC_DATA_OUT_EP)
#define USBD_CDC_DATA_OUT_EP MYNEWT_VAL(USBD_CDC_DATA_OUT_EP)
#else
-#define USBD_CDC_DATA_OUT_EP 0x01
+#define USBD_CDC_DATA_OUT_EP 0x02
#endif
#if defined(MYNEWT_VAL_USBD_CDC_DATA_IN_EP)
diff --git a/hw/usb/tinyusb/stm32_fsdev/stm32g0/include/tusb_hw.h
b/hw/usb/tinyusb/stm32_fsdev/stm32g0/include/tusb_hw.h
index 7b879e9b1..006253947 100644
--- a/hw/usb/tinyusb/stm32_fsdev/stm32g0/include/tusb_hw.h
+++ b/hw/usb/tinyusb/stm32_fsdev/stm32g0/include/tusb_hw.h
@@ -41,7 +41,7 @@
#if defined(MYNEWT_VAL_USBD_CDC_DATA_OUT_EP)
#define USBD_CDC_DATA_OUT_EP MYNEWT_VAL(USBD_CDC_DATA_OUT_EP)
#else
-#define USBD_CDC_DATA_OUT_EP 0x01
+#define USBD_CDC_DATA_OUT_EP 0x02
#endif
#if defined(MYNEWT_VAL_USBD_CDC_DATA_IN_EP)
diff --git a/hw/usb/tinyusb/stm32_fsdev/stm32g4/include/tusb_hw.h
b/hw/usb/tinyusb/stm32_fsdev/stm32g4/include/tusb_hw.h
index ab8fae2bc..8d2c6c1ce 100644
--- a/hw/usb/tinyusb/stm32_fsdev/stm32g4/include/tusb_hw.h
+++ b/hw/usb/tinyusb/stm32_fsdev/stm32g4/include/tusb_hw.h
@@ -41,7 +41,7 @@
#if defined(MYNEWT_VAL_USBD_CDC_DATA_OUT_EP)
#define USBD_CDC_DATA_OUT_EP MYNEWT_VAL(USBD_CDC_DATA_OUT_EP)
#else
-#define USBD_CDC_DATA_OUT_EP 0x01
+#define USBD_CDC_DATA_OUT_EP 0x02
#endif
#if defined(MYNEWT_VAL_USBD_CDC_DATA_IN_EP)
diff --git a/hw/usb/tinyusb/stm32_fsdev/stm32h5/include/tusb_hw.h
b/hw/usb/tinyusb/stm32_fsdev/stm32h5/include/tusb_hw.h
index 61df1fba7..163c7bebc 100644
--- a/hw/usb/tinyusb/stm32_fsdev/stm32h5/include/tusb_hw.h
+++ b/hw/usb/tinyusb/stm32_fsdev/stm32h5/include/tusb_hw.h
@@ -41,7 +41,7 @@
#if defined(MYNEWT_VAL_USBD_CDC_DATA_OUT_EP)
#define USBD_CDC_DATA_OUT_EP MYNEWT_VAL(USBD_CDC_DATA_OUT_EP)
#else
-#define USBD_CDC_DATA_OUT_EP 0x01
+#define USBD_CDC_DATA_OUT_EP 0x02
#endif
#if defined(MYNEWT_VAL_USBD_CDC_DATA_IN_EP)
diff --git a/hw/usb/tinyusb/stm32_fsdev/stm32l0/include/tusb_hw.h
b/hw/usb/tinyusb/stm32_fsdev/stm32l0/include/tusb_hw.h
index af22ed0d5..889c02e50 100644
--- a/hw/usb/tinyusb/stm32_fsdev/stm32l0/include/tusb_hw.h
+++ b/hw/usb/tinyusb/stm32_fsdev/stm32l0/include/tusb_hw.h
@@ -41,7 +41,7 @@
#if defined(MYNEWT_VAL_USBD_CDC_DATA_OUT_EP)
#define USBD_CDC_DATA_OUT_EP MYNEWT_VAL(USBD_CDC_DATA_OUT_EP)
#else
-#define USBD_CDC_DATA_OUT_EP 0x01
+#define USBD_CDC_DATA_OUT_EP 0x02
#endif
#if defined(MYNEWT_VAL_USBD_CDC_DATA_IN_EP)
diff --git a/hw/usb/tinyusb/stm32_fsdev/stm32wb55/include/tusb_hw.h
b/hw/usb/tinyusb/stm32_fsdev/stm32wb55/include/tusb_hw.h
index f732f741c..7de145950 100644
--- a/hw/usb/tinyusb/stm32_fsdev/stm32wb55/include/tusb_hw.h
+++ b/hw/usb/tinyusb/stm32_fsdev/stm32wb55/include/tusb_hw.h
@@ -41,7 +41,7 @@
#if defined(MYNEWT_VAL_USBD_CDC_DATA_OUT_EP)
#define USBD_CDC_DATA_OUT_EP MYNEWT_VAL(USBD_CDC_DATA_OUT_EP)
#else
-#define USBD_CDC_DATA_OUT_EP 0x01
+#define USBD_CDC_DATA_OUT_EP 0x02
#endif
#if defined(MYNEWT_VAL_USBD_CDC_DATA_IN_EP)
diff --git a/hw/usb/tinyusb/synopsys/include/tusb_hw.h
b/hw/usb/tinyusb/synopsys/include/tusb_hw.h
index 9b136122c..7cd7ccb9e 100755
--- a/hw/usb/tinyusb/synopsys/include/tusb_hw.h
+++ b/hw/usb/tinyusb/synopsys/include/tusb_hw.h
@@ -55,7 +55,7 @@
#if defined(MYNEWT_VAL_USBD_CDC_DATA_OUT_EP)
#define USBD_CDC_DATA_OUT_EP MYNEWT_VAL(USBD_CDC_DATA_OUT_EP)
#else
-#define USBD_CDC_DATA_OUT_EP 0x01
+#define USBD_CDC_DATA_OUT_EP 0x02
#endif
#if defined(MYNEWT_VAL_USBD_CDC_DATA_IN_EP)