summaryrefslogtreecommitdiff
path: root/examples/device/midi2_device/src
diff options
context:
space:
mode:
authorJie Feng <[email protected]>2026-06-14 20:25:02 +0800
committerJie Feng <[email protected]>2026-06-14 20:25:02 +0800
commit8c990885e304079e9e381f3899a53105c824624b (patch)
tree1ddb352846e3969fe98f087820cba038d24f728c /examples/device/midi2_device/src
parent14e20e9f6b592d63bb18eb6fb36f1fd462f4f0a0 (diff)
Fix one direction endpoint examples
Diffstat (limited to 'examples/device/midi2_device/src')
-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