summaryrefslogtreecommitdiff
path: root/examples/device/uac2_speaker_fb/src
diff options
context:
space:
mode:
authorhathach <[email protected]>2024-08-17 18:07:36 +0700
committerhathach <[email protected]>2024-08-17 18:07:36 +0700
commita6bee747b6f550e4fdb144c7db4aad70fee5ac69 (patch)
tree0b3cbf2b622aaf0594454f15d2944c01be6c355b /examples/device/uac2_speaker_fb/src
parent993473312b390b722d8693c23310b306997f8c2b (diff)
define and use TUD_ENDPOINT_EXCLUSIVE_NUMBER
Diffstat (limited to 'examples/device/uac2_speaker_fb/src')
-rw-r--r--examples/device/uac2_speaker_fb/src/usb_descriptors.c11
1 files changed, 2 insertions, 9 deletions
diff --git a/examples/device/uac2_speaker_fb/src/usb_descriptors.c b/examples/device/uac2_speaker_fb/src/usb_descriptors.c
index 31c5e116d..aadeb7e8a 100644
--- a/examples/device/uac2_speaker_fb/src/usb_descriptors.c
+++ b/examples/device/uac2_speaker_fb/src/usb_descriptors.c
@@ -131,15 +131,8 @@ uint8_t const * tud_hid_descriptor_report_cb(uint8_t itf)
#define EPNUM_AUDIO_OUT 0x08
#define EPNUM_DEBUG 0x01
-#elif CFG_TUSB_MCU == OPT_MCU_SAMG || CFG_TUSB_MCU == OPT_MCU_SAMX7X
- // SAMG & SAME70 don't support a same endpoint number with different direction IN and OUT
- // e.g EP1 OUT & EP1 IN cannot exist together
- #define EPNUM_AUDIO_FB 0x01
- #define EPNUM_AUDIO_OUT 0x02
- #define EPNUM_DEBUG 0x03
-
-#elif CFG_TUSB_MCU == OPT_MCU_FT90X || CFG_TUSB_MCU == OPT_MCU_FT93X
- // FT9XX doesn't support a same endpoint number with different direction IN and OUT
+#elif defined(TUD_ENDPOINT_EXCLUSIVE_NUMBER)
+ // MCUs that don't support a same endpoint number with different direction IN and OUT defined in tusb_mcu.h
// e.g EP1 OUT & EP1 IN cannot exist together
#define EPNUM_AUDIO_FB 0x01
#define EPNUM_AUDIO_OUT 0x02