diff options
| author | hathach <[email protected]> | 2023-08-03 14:55:24 +0700 |
|---|---|---|
| committer | hathach <[email protected]> | 2023-08-03 14:55:24 +0700 |
| commit | d89fc0772b0844703ae18912b8774df7c11d708c (patch) | |
| tree | a02765599494621f363e3d1976cfaffa3f6cb281 /examples/device/cdc_uac2/src | |
| parent | 6844055dd10f35701e267dc734add839c172e8f1 (diff) | |
add makefile, add cdc_uac2 to cmake example list, update descriptor to build with nrf and samg/7x
Diffstat (limited to 'examples/device/cdc_uac2/src')
| -rw-r--r-- | examples/device/cdc_uac2/src/cdc_app.c (renamed from examples/device/cdc_uac2/src/tusb_cdc.c) | 0 | ||||
| -rw-r--r-- | examples/device/cdc_uac2/src/uac2_app.c (renamed from examples/device/cdc_uac2/src/tusb_uac2.c) | 0 | ||||
| -rw-r--r-- | examples/device/cdc_uac2/src/usb_descriptors.c | 12 |
3 files changed, 12 insertions, 0 deletions
diff --git a/examples/device/cdc_uac2/src/tusb_cdc.c b/examples/device/cdc_uac2/src/cdc_app.c index a95f638d9..a95f638d9 100644 --- a/examples/device/cdc_uac2/src/tusb_cdc.c +++ b/examples/device/cdc_uac2/src/cdc_app.c diff --git a/examples/device/cdc_uac2/src/tusb_uac2.c b/examples/device/cdc_uac2/src/uac2_app.c index 33dc33122..33dc33122 100644 --- a/examples/device/cdc_uac2/src/tusb_uac2.c +++ b/examples/device/cdc_uac2/src/uac2_app.c diff --git a/examples/device/cdc_uac2/src/usb_descriptors.c b/examples/device/cdc_uac2/src/usb_descriptors.c index 1b2766829..58b711978 100644 --- a/examples/device/cdc_uac2/src/usb_descriptors.c +++ b/examples/device/cdc_uac2/src/usb_descriptors.c @@ -92,18 +92,30 @@ uint8_t const * tud_descriptor_device_cb(void) #define EPNUM_AUDIO_IN 0x08 #define EPNUM_AUDIO_OUT 0x08 + #define EPNUM_CDC_NOTIF 0x81 + #define EPNUM_CDC_OUT 0x02 + #define EPNUM_CDC_IN 0x82 + #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_IN 0x01 #define EPNUM_AUDIO_OUT 0x02 + #define EPNUM_CDC_NOTIF 0x83 + #define EPNUM_CDC_OUT 0x04 + #define EPNUM_CDC_IN 0x85 + #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 // e.g EP1 OUT & EP1 IN cannot exist together #define EPNUM_AUDIO_IN 0x01 #define EPNUM_AUDIO_OUT 0x02 + #define EPNUM_CDC_NOTIF 0x83 + #define EPNUM_CDC_OUT 0x04 + #define EPNUM_CDC_IN 0x85 + #else #define EPNUM_AUDIO_IN 0x01 #define EPNUM_AUDIO_OUT 0x01 |
