diff options
| author | Ha Thach <[email protected]> | 2021-10-12 22:01:02 +0700 |
|---|---|---|
| committer | GitHub <[email protected]> | 2021-10-12 22:01:02 +0700 |
| commit | 379537cb6deed9c9c055d0fd34d9a941f47ffc02 (patch) | |
| tree | a457364337eed1c0ad3bd01433ecf48d9d99015e /examples/device/audio_test/src | |
| parent | 557fa3900a78f1c378c5653d590253ea87450013 (diff) | |
| parent | ecec0370cac2a64ef2a0cf2e4e13f1c4e738e81b (diff) | |
Merge branch 'master' into add_uvc
Diffstat (limited to 'examples/device/audio_test/src')
| -rw-r--r-- | examples/device/audio_test/src/usb_descriptors.c | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/examples/device/audio_test/src/usb_descriptors.c b/examples/device/audio_test/src/usb_descriptors.c index a4e9dc8e1..348f5eede 100644 --- a/examples/device/audio_test/src/usb_descriptors.c +++ b/examples/device/audio_test/src/usb_descriptors.c @@ -82,11 +82,16 @@ enum #define CONFIG_TOTAL_LEN (TUD_CONFIG_DESC_LEN + CFG_TUD_AUDIO * TUD_AUDIO_MIC_ONE_CH_DESC_LEN) #if CFG_TUSB_MCU == OPT_MCU_LPC175X_6X || CFG_TUSB_MCU == OPT_MCU_LPC177X_8X || CFG_TUSB_MCU == OPT_MCU_LPC40XX -// LPC 17xx and 40xx endpoint type (bulk/interrupt/iso) are fixed by its number -// 0 control, 1 In, 2 Bulk, 3 Iso, 4 In etc ... -#define EPNUM_AUDIO 0x03 + // LPC 17xx and 40xx endpoint type (bulk/interrupt/iso) are fixed by its number + // 0 control, 1 In, 2 Bulk, 3 Iso, 4 In etc ... + #define EPNUM_AUDIO 0x03 + +#elif TU_CHECK_MCU(NRF5X) + // nRF5x ISO can only be endpoint 8 + #define EPNUM_AUDIO 0x08 + #else -#define EPNUM_AUDIO 0x01 + #define EPNUM_AUDIO 0x01 #endif uint8_t const desc_configuration[] = |
