mirror of
https://github.com/hathach/tinyusb.git
synced 2025-03-14 04:18:56 +00:00
change F207 to use new dwc2
This commit is contained in:
parent
b85a6898af
commit
215e0595ab
@ -21,7 +21,7 @@ CFLAGS += -Wno-error=sign-compare
|
||||
LD_FILE = hw/bsp/$(BOARD)/STM32F207ZGTx_FLASH.ld
|
||||
|
||||
SRC_C += \
|
||||
src/portable/st/synopsys/dcd_synopsys.c \
|
||||
src/portable/synopsys/dwc2/dcd_dwc2.c \
|
||||
$(ST_CMSIS)/Source/Templates/system_stm32$(ST_FAMILY)xx.c \
|
||||
$(ST_HAL_DRIVER)/Src/stm32$(ST_FAMILY)xx_hal.c \
|
||||
$(ST_HAL_DRIVER)/Src/stm32$(ST_FAMILY)xx_hal_cortex.c \
|
||||
|
@ -8,5 +8,8 @@ CFLAGS += \
|
||||
LD_FILE = $(BOARD_PATH)/STM32F767ZITx_FLASH.ld
|
||||
SRC_S += $(ST_CMSIS)/Source/Templates/gcc/startup_stm32f767xx.s
|
||||
|
||||
# For flash-jlink target
|
||||
JLINK_DEVICE = stm32f767zi
|
||||
|
||||
# flash target using on-board stlink
|
||||
flash: flash-stlink
|
||||
|
@ -264,9 +264,9 @@ void print_dwc2_info(dwc2_regs_t * dwc2)
|
||||
dwc2_ghwcfg3_t const * hw_cfg3 = &dwc2->ghwcfg3_bm;
|
||||
dwc2_ghwcfg4_t const * hw_cfg4 = &dwc2->ghwcfg4_bm;
|
||||
|
||||
TU_LOG_HEX(DWC2_DEBUG, dwc2->gotgctl);
|
||||
TU_LOG_HEX(DWC2_DEBUG, dwc2->gusbcfg);
|
||||
TU_LOG_HEX(DWC2_DEBUG, dwc2->dcfg);
|
||||
// TU_LOG_HEX(DWC2_DEBUG, dwc2->gotgctl);
|
||||
// TU_LOG_HEX(DWC2_DEBUG, dwc2->gusbcfg);
|
||||
// TU_LOG_HEX(DWC2_DEBUG, dwc2->dcfg);
|
||||
TU_LOG_HEX(DWC2_DEBUG, dwc2->guid);
|
||||
TU_LOG_HEX(DWC2_DEBUG, dwc2->gsnpsid);
|
||||
TU_LOG_HEX(DWC2_DEBUG, dwc2->ghwcfg1);
|
||||
|
Loading…
x
Reference in New Issue
Block a user