diff options
| author | Zixun LI <[email protected]> | 2026-07-19 22:20:09 +0200 |
|---|---|---|
| committer | GitHub <[email protected]> | 2026-07-19 22:20:09 +0200 |
| commit | 2555891761f771bd87504574c48096eb2d07c985 (patch) | |
| tree | c8d936281847d5fd9e7185fe898ea1538a6367bf /examples/device/uac2_headset/src | |
| parent | 52e6ab7704ce2e57f41f70d6ba2bc5470c4b56c7 (diff) | |
| parent | b00b40da28285f67efd652e20cfe3877d42d2ff3 (diff) | |
Merge pull request #3694 from rhgndf/py32f0
Puya PY32F07x support
Diffstat (limited to 'examples/device/uac2_headset/src')
| -rw-r--r-- | examples/device/uac2_headset/src/usb_descriptors.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/examples/device/uac2_headset/src/usb_descriptors.c b/examples/device/uac2_headset/src/usb_descriptors.c index 1615b92ec..27b6c930c 100644 --- a/examples/device/uac2_headset/src/usb_descriptors.c +++ b/examples/device/uac2_headset/src/usb_descriptors.c @@ -98,6 +98,11 @@ uint8_t const * tud_descriptor_device_cb(void) #define EPNUM_AUDIO_OUT 0x0A #define EPNUM_AUDIO_IN 0x0B #define EPNUM_AUDIO_INT 0x01 + #elif TU_CHECK_MCU(OPT_MCU_PY32F0) + // Speaker OUT (196 B) only fits EP1 (512 B FIFO); mic IN (98 B) fits EP2 (128 B) + #define EPNUM_AUDIO_OUT 0x01 + #define EPNUM_AUDIO_IN 0x02 + #define EPNUM_AUDIO_INT 0x03 #else #define EPNUM_AUDIO_IN 0x01 #define EPNUM_AUDIO_OUT 0x02 |
