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.
This commit is contained in:
@@ -132,7 +132,7 @@ function(family_configure_example TARGET RTOS)
|
||||
# Add TinyUSB target and port source
|
||||
family_add_tinyusb(${TARGET} OPT_MCU_MAX32690 ${RTOS})
|
||||
target_sources(${TARGET}-tinyusb PUBLIC
|
||||
${TOP}/src/portable/analog/max32/dcd_max32.c
|
||||
${TOP}/src/portable/mentor/musb/dcd_musb.c
|
||||
)
|
||||
target_compile_options(${TARGET} PRIVATE
|
||||
-Wno-error=strict-prototypes
|
||||
|
@@ -64,7 +64,7 @@ flash-msdk: $(BUILD)/$(PROJECT).elf
|
||||
# -----------------
|
||||
PERIPH_SRC = $(TOP)/$(MAX32_PERIPH)/Source
|
||||
SRC_C += \
|
||||
src/portable/analog/max32/dcd_max32.c \
|
||||
src/portable/mentor/musb/dcd_musb.c \
|
||||
$(MAX32_CMSIS)/Device/Maxim/MAX32690/Source/heap.c \
|
||||
$(MAX32_CMSIS)/Device/Maxim/MAX32690/Source/system_max32690.c \
|
||||
$(PERIPH_SRC)/SYS/mxc_assert.c \
|
||||
|
Reference in New Issue
Block a user