summaryrefslogtreecommitdiff
path: root/examples/device/midi2_device
diff options
context:
space:
mode:
authorhathach <[email protected]>2026-06-22 15:36:37 +0700
committerhathach <[email protected]>2026-06-22 15:36:37 +0700
commit706e4a5daaf8bbb55f0a7d00b69d4bc3c4cd70eb (patch)
tree4b9d46e8b6397ba050d7fba159a67efc0d511eca /examples/device/midi2_device
parent8abaf22bb6f2b63910cf35fb70cd223d0e4b30cd (diff)
parent299c0a55629691f6bbded895a4be377633e815ab (diff)
Merge remote-tracking branch 'origin/master' into add-ch58x-usbfs
Diffstat (limited to 'examples/device/midi2_device')
-rw-r--r--examples/device/midi2_device/src/usb_descriptors.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/examples/device/midi2_device/src/usb_descriptors.c b/examples/device/midi2_device/src/usb_descriptors.c
index 19a43f2d8..f035f9c48 100644
--- a/examples/device/midi2_device/src/usb_descriptors.c
+++ b/examples/device/midi2_device/src/usb_descriptors.c
@@ -70,7 +70,11 @@ enum {
// Endpoint addresses
#define EPNUM_MIDI2_OUT 0x01
+#if CFG_TUD_ENDPOINT_ONE_DIRECTION_ONLY
+#define EPNUM_MIDI2_IN 0x82
+#else
#define EPNUM_MIDI2_IN 0x81
+#endif
static uint8_t const desc_fs_configuration[] = {
// Config number, interface count, string index, total length, attribute, power in mA