diff options
| author | Brent Kowal <[email protected]> | 2024-07-25 09:08:37 -0400 |
|---|---|---|
| committer | Brent Kowal <[email protected]> | 2024-07-25 09:08:37 -0400 |
| commit | 5122d6d109f8c4b31b6cbe29c685fad30a8961fe (patch) | |
| tree | f45efc716882a885d776a30f79c11fef9e41735f /examples | |
| parent | 13f5f20c981cc54baa8438e275524db03fb79e94 (diff) | |
Combined DCD MUSB implementations
Combined the new MAX32 MUSB implementation with the existing (TI) implementation to provide generic code base for working the MUSB DCD peripheral.
- Added abstraction calls for FIFO setup, EP registers, Ctrl registers and interrupt setup.
- Combined TM4C and MSP432E into a single header file.
- Created musb_max32.h, and removed the MAX32 specific C implementation.
- Updated MAX32 build system to use dcd_musb.c.
- Added MAX32 conditions for cdc_dual_ports example descriptors missed during first testing.
Diffstat (limited to 'examples')
| -rw-r--r-- | examples/device/cdc_dual_ports/src/usb_descriptors.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/examples/device/cdc_dual_ports/src/usb_descriptors.c b/examples/device/cdc_dual_ports/src/usb_descriptors.c index de2505c07..808d78411 100644 --- a/examples/device/cdc_dual_ports/src/usb_descriptors.c +++ b/examples/device/cdc_dual_ports/src/usb_descriptors.c @@ -120,6 +120,18 @@ enum #define EPNUM_CDC_1_OUT 0x05 #define EPNUM_CDC_1_IN 0x86 +#elif CFG_TUSB_MCU == OPT_MCU_MAX32690 || CFG_TUSB_MCU == OPT_MCU_MAX32650 || \ + CFG_TUSB_MCU == OPT_MCU_MAX32666 || CFG_TUSB_MCU == OPT_MCU_MAX78002 + // MAX32 doesn't support a same endpoint number with different direction IN and OUT + // e.g EP1 OUT & EP1 IN cannot exist together + #define EPNUM_CDC_0_NOTIF 0x81 + #define EPNUM_CDC_0_OUT 0x02 + #define EPNUM_CDC_0_IN 0x83 + + #define EPNUM_CDC_1_NOTIF 0x84 + #define EPNUM_CDC_1_OUT 0x05 + #define EPNUM_CDC_1_IN 0x86 + #else #define EPNUM_CDC_0_NOTIF 0x81 #define EPNUM_CDC_0_OUT 0x02 |
