explicitly add dcd source file without vendor/family

This commit is contained in:
hathach 2021-03-17 16:52:07 +07:00
parent 8775e89a4f
commit ed8f117dd1
46 changed files with 56 additions and 190 deletions

View File

@ -142,7 +142,6 @@ static uint8_t const ecm_configuration[] =
// - Windows only works with RNDIS // - Windows only works with RNDIS
// - MacOS only works with CDC-ECM // - MacOS only works with CDC-ECM
// - Linux will work on both // - Linux will work on both
// Note index is Num-1x
static uint8_t const * const configuration_arr[2] = static uint8_t const * const configuration_arr[2] =
{ {
[CONFIG_ID_RNDIS] = rndis_configuration, [CONFIG_ID_RNDIS] = rndis_configuration,

View File

@ -93,8 +93,7 @@ SRC_C += \
src/class/msc/msc_device.c \ src/class/msc/msc_device.c \
src/class/net/net_device.c \ src/class/net/net_device.c \
src/class/usbtmc/usbtmc_device.c \ src/class/usbtmc/usbtmc_device.c \
src/class/vendor/vendor_device.c \ src/class/vendor/vendor_device.c
src/portable/$(VENDOR)/$(CHIP_FAMILY)/dcd_$(CHIP_FAMILY).c
# TinyUSB stack include # TinyUSB stack include
INC += $(TOP)/src INC += $(TOP)/src

View File

@ -22,8 +22,9 @@ CFLAGS += \
LD_FILE = hw/bsp/$(BOARD)/same51j19a_flash.ld LD_FILE = hw/bsp/$(BOARD)/same51j19a_flash.ld
SRC_C += \ SRC_C += \
src/portable/microchip/samd/dcd_samd.c \
hw/mcu/microchip/same51/gcc/gcc/startup_same51.c \ hw/mcu/microchip/same51/gcc/gcc/startup_same51.c \
hw/mcu/microchip/same51/gcc/system_same51.c \ hw/mcu/microchip/same51/gcc/system_same51.c
ifdef SYSCALLS ifdef SYSCALLS
ifneq ($(SYSCALLS),0) ifneq ($(SYSCALLS),0)
@ -47,10 +48,6 @@ INC += \
$(TOP)/hw/mcu/microchip/same51/hri \ $(TOP)/hw/mcu/microchip/same51/hri \
$(TOP)/hw/mcu/microchip/same51/CMSIS/Include $(TOP)/hw/mcu/microchip/same51/CMSIS/Include
# For TinyUSB port source
VENDOR = microchip
CHIP_FAMILY = samd
# For freeRTOS port source # For freeRTOS port source
FREERTOS_PORT = ARM_CM4F FREERTOS_PORT = ARM_CM4F

View File

@ -16,7 +16,9 @@ MCU_FAMILY_DIR = hw/mcu/dialog/da1469x
# All source paths should be relative to the top level. # All source paths should be relative to the top level.
LD_FILE = hw/bsp/$(BOARD)/da1469x.ld LD_FILE = hw/bsp/$(BOARD)/da1469x.ld
# While this is for da1469x chip, there is chance that da1468x chip family will also work
SRC_C += \ SRC_C += \
src/portable/dialog/da146xx/dcd_da146xx.c \
$(MCU_FAMILY_DIR)/src/system_da1469x.c \ $(MCU_FAMILY_DIR)/src/system_da1469x.c \
$(MCU_FAMILY_DIR)/src/da1469x_clock.c \ $(MCU_FAMILY_DIR)/src/da1469x_clock.c \
$(MCU_FAMILY_DIR)/src/hal_gpio.c \ $(MCU_FAMILY_DIR)/src/hal_gpio.c \
@ -26,12 +28,7 @@ SRC_S += hw/bsp/$(BOARD)/gcc_startup_da1469x.S
INC += \ INC += \
$(TOP)/hw/bsp/$(BOARD) \ $(TOP)/hw/bsp/$(BOARD) \
$(TOP)/$(MCU_FAMILY_DIR)/include \ $(TOP)/$(MCU_FAMILY_DIR)/include \
$(TOP)/$(MCU_FAMILY_DIR)/SDK_10.0.8.105/sdk/bsp/include \ $(TOP)/$(MCU_FAMILY_DIR)/SDK_10.0.8.105/sdk/bsp/include
# For TinyUSB port source
VENDOR = dialog
# While this is for da1469x chip, there is chance that da1468x chip family will also work
CHIP_FAMILY = da146xx
# For freeRTOS port source # For freeRTOS port source
FREERTOS_PORT = ARM_CM33_NTZ/non_secure FREERTOS_PORT = ARM_CM33_NTZ/non_secure

View File

@ -16,7 +16,9 @@ MCU_FAMILY_DIR = hw/mcu/dialog/da1469x
# All source paths should be relative to the top level. # All source paths should be relative to the top level.
LD_FILE = hw/bsp/$(BOARD)/da1469x.ld LD_FILE = hw/bsp/$(BOARD)/da1469x.ld
# While this is for da1469x chip, there is chance that da1468x chip family will also work
SRC_C += \ SRC_C += \
src/portable/dialog/da146xx/dcd_da146xx.c \
$(MCU_FAMILY_DIR)/src/system_da1469x.c \ $(MCU_FAMILY_DIR)/src/system_da1469x.c \
$(MCU_FAMILY_DIR)/src/da1469x_clock.c \ $(MCU_FAMILY_DIR)/src/da1469x_clock.c \
$(MCU_FAMILY_DIR)/src/hal_gpio.c \ $(MCU_FAMILY_DIR)/src/hal_gpio.c \
@ -26,12 +28,7 @@ SRC_S += hw/bsp/$(BOARD)/gcc_startup_da1469x.S
INC += \ INC += \
$(TOP)/hw/bsp/$(BOARD) \ $(TOP)/hw/bsp/$(BOARD) \
$(TOP)/$(MCU_FAMILY_DIR)/include \ $(TOP)/$(MCU_FAMILY_DIR)/include \
$(TOP)/$(MCU_FAMILY_DIR)/SDK_10.0.8.105/sdk/bsp/include \ $(TOP)/$(MCU_FAMILY_DIR)/SDK_10.0.8.105/sdk/bsp/include
# For TinyUSB port source
VENDOR = dialog
# While this is for da1469x chip, there is chance that da1468x chip family will also work
CHIP_FAMILY = da146xx
# For freeRTOS port source # For freeRTOS port source
FREERTOS_PORT = ARM_CM33_NTZ/non_secure FREERTOS_PORT = ARM_CM33_NTZ/non_secure

View File

@ -22,6 +22,7 @@ MCU_DIR = hw/mcu/nxp/lpcopen/lpc40xx/lpc_chip_40xx
LD_FILE = hw/bsp/$(BOARD)/lpc4088.ld LD_FILE = hw/bsp/$(BOARD)/lpc4088.ld
SRC_C += \ SRC_C += \
src/portable/nxp/lpc17_40/dcd_lpc17_40.c \
$(MCU_DIR)/../gcc/cr_startup_lpc40xx.c \ $(MCU_DIR)/../gcc/cr_startup_lpc40xx.c \
$(MCU_DIR)/src/chip_17xx_40xx.c \ $(MCU_DIR)/src/chip_17xx_40xx.c \
$(MCU_DIR)/src/clock_17xx_40xx.c \ $(MCU_DIR)/src/clock_17xx_40xx.c \
@ -35,10 +36,6 @@ SRC_C += \
INC += \ INC += \
$(TOP)/$(MCU_DIR)/inc $(TOP)/$(MCU_DIR)/inc
# For TinyUSB port source
VENDOR = nxp
CHIP_FAMILY = lpc17_40
# For freeRTOS port source # For freeRTOS port source
FREERTOS_PORT = ARM_CM4F FREERTOS_PORT = ARM_CM4F

View File

@ -21,6 +21,7 @@ MCU_DIR = hw/mcu/nxp/lpcopen/lpc43xx/lpc_chip_43xx
LD_FILE = hw/bsp/$(BOARD)/lpc4357.ld LD_FILE = hw/bsp/$(BOARD)/lpc4357.ld
SRC_C += \ SRC_C += \
src/portable/nxp/transdimension/dcd_transdimension.c \
$(MCU_DIR)/../gcc/cr_startup_lpc43xx.c \ $(MCU_DIR)/../gcc/cr_startup_lpc43xx.c \
$(MCU_DIR)/src/chip_18xx_43xx.c \ $(MCU_DIR)/src/chip_18xx_43xx.c \
$(MCU_DIR)/src/clock_18xx_43xx.c \ $(MCU_DIR)/src/clock_18xx_43xx.c \
@ -35,10 +36,6 @@ INC += \
$(TOP)/$(MCU_DIR)/inc \ $(TOP)/$(MCU_DIR)/inc \
$(TOP)/$(MCU_DIR)/inc/config_43xx $(TOP)/$(MCU_DIR)/inc/config_43xx
# For TinyUSB port source
VENDOR = nxp
CHIP_FAMILY = transdimension
# For freeRTOS port source # For freeRTOS port source
FREERTOS_PORT = ARM_CM4F FREERTOS_PORT = ARM_CM4F

View File

@ -11,15 +11,13 @@ CROSS_COMPILE = riscv-none-embed-
# All source paths should be relative to the top level. # All source paths should be relative to the top level.
LD_FILE = $(FAMILY_PATH)/fomu.ld LD_FILE = $(FAMILY_PATH)/fomu.ld
SRC_C += src/portable/valentyusb/eptri/dcd_eptri.c
SRC_S += $(FAMILY_PATH)/crt0-vexriscv.S SRC_S += $(FAMILY_PATH)/crt0-vexriscv.S
INC += \ INC += \
$(TOP)/$(FAMILY_PATH)/include $(TOP)/$(FAMILY_PATH)/include
# For TinyUSB port source
VENDOR = valentyusb
CHIP_FAMILY = eptri
# For freeRTOS port source # For freeRTOS port source
FREERTOS_PORT = RISC-V FREERTOS_PORT = RISC-V

View File

@ -16,6 +16,7 @@ MCU_DIR = hw/mcu/nxp/sdk/devices/MKL25Z4
LD_FILE = $(MCU_DIR)/gcc/MKL25Z128xxx4_flash.ld LD_FILE = $(MCU_DIR)/gcc/MKL25Z128xxx4_flash.ld
SRC_C += \ SRC_C += \
src/portable/nxp/khci/dcd_khci.c \
$(MCU_DIR)/system_MKL25Z4.c \ $(MCU_DIR)/system_MKL25Z4.c \
$(MCU_DIR)/project_template/clock_config.c \ $(MCU_DIR)/project_template/clock_config.c \
$(MCU_DIR)/drivers/fsl_clock.c \ $(MCU_DIR)/drivers/fsl_clock.c \
@ -31,10 +32,6 @@ INC += \
SRC_S += $(MCU_DIR)/gcc/startup_MKL25Z4.S SRC_S += $(MCU_DIR)/gcc/startup_MKL25Z4.S
# For TinyUSB port source
VENDOR = nxp
CHIP_FAMILY = khci
# For freeRTOS port source # For freeRTOS port source
FREERTOS_PORT = ARM_CM0 FREERTOS_PORT = ARM_CM0

View File

@ -27,6 +27,7 @@ LDFLAGS += \
-Wl,--defsym,__stack_size__=0x800 \ -Wl,--defsym,__stack_size__=0x800 \
SRC_C += \ SRC_C += \
src/portable/nxp/transdimension/dcd_transdimension.c \
$(MCU_DIR)/system_$(MCU_VARIANT).c \ $(MCU_DIR)/system_$(MCU_VARIANT).c \
$(MCU_DIR)/xip/fsl_flexspi_nor_boot.c \ $(MCU_DIR)/xip/fsl_flexspi_nor_boot.c \
$(MCU_DIR)/project_template/clock_config.c \ $(MCU_DIR)/project_template/clock_config.c \
@ -44,10 +45,6 @@ INC += \
SRC_S += $(MCU_DIR)/gcc/startup_$(MCU_VARIANT).S SRC_S += $(MCU_DIR)/gcc/startup_$(MCU_VARIANT).S
# For TinyUSB port source
VENDOR = nxp
CHIP_FAMILY = transdimension
# For freeRTOS port source # For freeRTOS port source
FREERTOS_PORT = ARM_CM7/r0p1 FREERTOS_PORT = ARM_CM7/r0p1

View File

@ -18,6 +18,7 @@ CFLAGS += -Wno-error=unused-parameter -Wno-error=strict-prototypes
MCU_DIR = hw/mcu/nxp/lpcopen/lpc18xx/lpc_chip_18xx MCU_DIR = hw/mcu/nxp/lpcopen/lpc18xx/lpc_chip_18xx
SRC_C += \ SRC_C += \
src/portable/nxp/transdimension/dcd_transdimension.c \
$(MCU_DIR)/../gcc/cr_startup_lpc18xx.c \ $(MCU_DIR)/../gcc/cr_startup_lpc18xx.c \
$(MCU_DIR)/src/chip_18xx_43xx.c \ $(MCU_DIR)/src/chip_18xx_43xx.c \
$(MCU_DIR)/src/clock_18xx_43xx.c \ $(MCU_DIR)/src/clock_18xx_43xx.c \
@ -30,9 +31,5 @@ INC += \
$(TOP)/$(MCU_DIR)/inc \ $(TOP)/$(MCU_DIR)/inc \
$(TOP)/$(MCU_DIR)/inc/config_18xx $(TOP)/$(MCU_DIR)/inc/config_18xx
# For TinyUSB port source
VENDOR = nxp
CHIP_FAMILY = transdimension
# For freeRTOS port source # For freeRTOS port source
FREERTOS_PORT = ARM_CM3 FREERTOS_PORT = ARM_CM3

View File

@ -34,6 +34,7 @@ MCU_DIR = hw/mcu/nxp/sdk/devices/$(MCU_VARIANT)
LD_FILE ?= $(MCU_DIR)/gcc/$(MCU_CORE)_flash.ld LD_FILE ?= $(MCU_DIR)/gcc/$(MCU_CORE)_flash.ld
SRC_C += \ SRC_C += \
src/portable/nxp/lpc_ip3511/dcd_lpc_ip3511.c \
$(MCU_DIR)/system_$(MCU_CORE).c \ $(MCU_DIR)/system_$(MCU_CORE).c \
$(MCU_DIR)/drivers/fsl_clock.c \ $(MCU_DIR)/drivers/fsl_clock.c \
$(MCU_DIR)/drivers/fsl_gpio.c \ $(MCU_DIR)/drivers/fsl_gpio.c \
@ -54,9 +55,5 @@ SRC_S += $(MCU_DIR)/gcc/startup_$(MCU_CORE).S
LIBS += $(TOP)/$(MCU_DIR)/gcc/libpower_hardabi.a LIBS += $(TOP)/$(MCU_DIR)/gcc/libpower_hardabi.a
# For TinyUSB port source
VENDOR = nxp
CHIP_FAMILY = lpc_ip3511
# For freeRTOS port source # For freeRTOS port source
FREERTOS_PORT = ARM_CM33_NTZ/non_secure FREERTOS_PORT = ARM_CM33_NTZ/non_secure

View File

@ -22,6 +22,7 @@ MCU_DIR = hw/mcu/nxp/lpcopen/lpc11uxx/lpc_chip_11uxx
LD_FILE = hw/bsp/$(BOARD)/lpc11u37.ld LD_FILE = hw/bsp/$(BOARD)/lpc11u37.ld
SRC_C += \ SRC_C += \
src/portable/nxp/lpc_ip3511/dcd_lpc_ip3511.c \
$(MCU_DIR)/../gcc/cr_startup_lpc11xx.c \ $(MCU_DIR)/../gcc/cr_startup_lpc11xx.c \
$(MCU_DIR)/src/chip_11xx.c \ $(MCU_DIR)/src/chip_11xx.c \
$(MCU_DIR)/src/clock_11xx.c \ $(MCU_DIR)/src/clock_11xx.c \
@ -33,10 +34,6 @@ SRC_C += \
INC += \ INC += \
$(TOP)/$(MCU_DIR)/inc $(TOP)/$(MCU_DIR)/inc
# For TinyUSB port source
VENDOR = nxp
CHIP_FAMILY = lpc_ip3511
# For freeRTOS port source # For freeRTOS port source
FREERTOS_PORT = ARM_CM0 FREERTOS_PORT = ARM_CM0

View File

@ -19,6 +19,7 @@ MCU_DIR = hw/mcu/nxp/lpcopen/lpc11u6x/lpc_chip_11u6x
LD_FILE = hw/bsp/$(BOARD)/lpc11u68.ld LD_FILE = hw/bsp/$(BOARD)/lpc11u68.ld
SRC_C += \ SRC_C += \
src/portable/nxp/lpc_ip3511/dcd_lpc_ip3511.c \
$(MCU_DIR)/../gcc/cr_startup_lpc11u6x.c \ $(MCU_DIR)/../gcc/cr_startup_lpc11u6x.c \
$(MCU_DIR)/src/chip_11u6x.c \ $(MCU_DIR)/src/chip_11u6x.c \
$(MCU_DIR)/src/clock_11u6x.c \ $(MCU_DIR)/src/clock_11u6x.c \
@ -30,10 +31,6 @@ SRC_C += \
INC += \ INC += \
$(TOP)/$(MCU_DIR)/inc $(TOP)/$(MCU_DIR)/inc
# For TinyUSB port source
VENDOR = nxp
CHIP_FAMILY = lpc_ip3511
# For freeRTOS port source # For freeRTOS port source
FREERTOS_PORT = ARM_CM0 FREERTOS_PORT = ARM_CM0

View File

@ -22,6 +22,7 @@ MCU_DIR = hw/mcu/nxp/lpcopen/lpc13xx/lpc_chip_13xx
LD_FILE = hw/bsp/$(BOARD)/lpc1347.ld LD_FILE = hw/bsp/$(BOARD)/lpc1347.ld
SRC_C += \ SRC_C += \
src/portable/nxp/lpc_ip3511/dcd_lpc_ip3511.c \
$(MCU_DIR)/../gcc/cr_startup_lpc13xx.c \ $(MCU_DIR)/../gcc/cr_startup_lpc13xx.c \
$(MCU_DIR)/src/chip_13xx.c \ $(MCU_DIR)/src/chip_13xx.c \
$(MCU_DIR)/src/clock_13xx.c \ $(MCU_DIR)/src/clock_13xx.c \
@ -33,10 +34,6 @@ SRC_C += \
INC += \ INC += \
$(TOP)/$(MCU_DIR)/inc $(TOP)/$(MCU_DIR)/inc
# For TinyUSB port source
VENDOR = nxp
CHIP_FAMILY = lpc_ip3511
# For freeRTOS port source # For freeRTOS port source
FREERTOS_PORT = ARM_CM3 FREERTOS_PORT = ARM_CM3

View File

@ -21,6 +21,7 @@ MCU_DIR = hw/mcu/nxp/lpcopen/lpc15xx/lpc_chip_15xx
LD_FILE = hw/bsp/$(BOARD)/lpc1549.ld LD_FILE = hw/bsp/$(BOARD)/lpc1549.ld
SRC_C += \ SRC_C += \
src/portable/nxp/lpc_ip3511/dcd_lpc_ip3511.c \
$(MCU_DIR)/../gcc/cr_startup_lpc15xx.c \ $(MCU_DIR)/../gcc/cr_startup_lpc15xx.c \
$(MCU_DIR)/src/chip_15xx.c \ $(MCU_DIR)/src/chip_15xx.c \
$(MCU_DIR)/src/clock_15xx.c \ $(MCU_DIR)/src/clock_15xx.c \
@ -33,10 +34,6 @@ SRC_C += \
INC += \ INC += \
$(TOP)/$(MCU_DIR)/inc $(TOP)/$(MCU_DIR)/inc
# For TinyUSB port source
VENDOR = nxp
CHIP_FAMILY = lpc_ip3511
# For freeRTOS port source # For freeRTOS port source
FREERTOS_PORT = ARM_CM3 FREERTOS_PORT = ARM_CM3

View File

@ -20,6 +20,7 @@ MCU_DIR = hw/mcu/nxp/lpcopen/lpc175x_6x/lpc_chip_175x_6x
LD_FILE = hw/bsp/$(BOARD)/lpc1769.ld LD_FILE = hw/bsp/$(BOARD)/lpc1769.ld
SRC_C += \ SRC_C += \
src/portable/nxp/lpc17_40/dcd_lpc17_40.c \
$(MCU_DIR)/../gcc/cr_startup_lpc175x_6x.c \ $(MCU_DIR)/../gcc/cr_startup_lpc175x_6x.c \
$(MCU_DIR)/src/chip_17xx_40xx.c \ $(MCU_DIR)/src/chip_17xx_40xx.c \
$(MCU_DIR)/src/clock_17xx_40xx.c \ $(MCU_DIR)/src/clock_17xx_40xx.c \
@ -32,10 +33,6 @@ SRC_C += \
INC += \ INC += \
$(TOP)/$(MCU_DIR)/inc $(TOP)/$(MCU_DIR)/inc
# For TinyUSB port source
VENDOR = nxp
CHIP_FAMILY = lpc17_40
# For freeRTOS port source # For freeRTOS port source
FREERTOS_PORT = ARM_CM3 FREERTOS_PORT = ARM_CM3

View File

@ -19,6 +19,7 @@ MCU_DIR = hw/mcu/nxp/sdk/devices/LPC51U68
LD_FILE = $(MCU_DIR)/gcc/LPC51U68_flash.ld LD_FILE = $(MCU_DIR)/gcc/LPC51U68_flash.ld
SRC_C += \ SRC_C += \
src/portable/nxp/lpc_ip3511/dcd_lpc_ip3511.c \
$(MCU_DIR)/system_LPC51U68.c \ $(MCU_DIR)/system_LPC51U68.c \
$(MCU_DIR)/drivers/fsl_clock.c \ $(MCU_DIR)/drivers/fsl_clock.c \
$(MCU_DIR)/drivers/fsl_gpio.c \ $(MCU_DIR)/drivers/fsl_gpio.c \
@ -34,10 +35,6 @@ SRC_S += $(MCU_DIR)/gcc/startup_LPC51U68.S
LIBS += $(TOP)/$(MCU_DIR)/gcc/libpower.a LIBS += $(TOP)/$(MCU_DIR)/gcc/libpower.a
# For TinyUSB port source
VENDOR = nxp
CHIP_FAMILY = lpc_ip3511
# For freeRTOS port source # For freeRTOS port source
FREERTOS_PORT = ARM_CM0 FREERTOS_PORT = ARM_CM0

View File

@ -21,6 +21,7 @@ MCU_DIR = hw/mcu/nxp/sdk/devices/LPC54114
LD_FILE = $(MCU_DIR)/gcc/LPC54114J256_cm4_flash.ld LD_FILE = $(MCU_DIR)/gcc/LPC54114J256_cm4_flash.ld
SRC_C += \ SRC_C += \
src/portable/nxp/lpc_ip3511/dcd_lpc_ip3511.c \
$(MCU_DIR)/system_LPC54114_cm4.c \ $(MCU_DIR)/system_LPC54114_cm4.c \
$(MCU_DIR)/drivers/fsl_clock.c \ $(MCU_DIR)/drivers/fsl_clock.c \
$(MCU_DIR)/drivers/fsl_gpio.c \ $(MCU_DIR)/drivers/fsl_gpio.c \
@ -36,10 +37,6 @@ SRC_S += $(MCU_DIR)/gcc/startup_LPC54114_cm4.S
LIBS += $(TOP)/$(MCU_DIR)/gcc/libpower_cm4_hardabi.a LIBS += $(TOP)/$(MCU_DIR)/gcc/libpower_cm4_hardabi.a
# For TinyUSB port source
VENDOR = nxp
CHIP_FAMILY = lpc_ip3511
# For freeRTOS port source # For freeRTOS port source
FREERTOS_PORT = ARM_CM4F FREERTOS_PORT = ARM_CM4F

View File

@ -20,6 +20,7 @@ MCU_DIR = hw/mcu/nxp/lpcopen/lpc175x_6x/lpc_chip_175x_6x
LD_FILE = hw/bsp/$(BOARD)/lpc1768.ld LD_FILE = hw/bsp/$(BOARD)/lpc1768.ld
SRC_C += \ SRC_C += \
src/portable/nxp/lpc17_40/dcd_lpc17_40.c \
$(MCU_DIR)/../gcc/cr_startup_lpc175x_6x.c \ $(MCU_DIR)/../gcc/cr_startup_lpc175x_6x.c \
$(MCU_DIR)/src/chip_17xx_40xx.c \ $(MCU_DIR)/src/chip_17xx_40xx.c \
$(MCU_DIR)/src/clock_17xx_40xx.c \ $(MCU_DIR)/src/clock_17xx_40xx.c \
@ -32,10 +33,6 @@ SRC_C += \
INC += \ INC += \
$(TOP)/$(MCU_DIR)/inc $(TOP)/$(MCU_DIR)/inc
# For TinyUSB port source
VENDOR = nxp
CHIP_FAMILY = lpc17_40
# For freeRTOS port source # For freeRTOS port source
FREERTOS_PORT = ARM_CM3 FREERTOS_PORT = ARM_CM3

View File

@ -8,23 +8,17 @@ CFLAGS += \
-DCFG_EXAMPLE_MSC_READONLY \ -DCFG_EXAMPLE_MSC_READONLY \
-DCFG_TUD_ENDPOINT0_SIZE=8 -DCFG_TUD_ENDPOINT0_SIZE=8
#-mmcu=msp430f5529
# All source paths should be relative to the top level. # All source paths should be relative to the top level.
LD_FILE = hw/mcu/ti/msp430/msp430-gcc-support-files/include/msp430f5529.ld LD_FILE = hw/mcu/ti/msp430/msp430-gcc-support-files/include/msp430f5529.ld
LDINC += $(TOP)/hw/mcu/ti/msp430/msp430-gcc-support-files/include LDINC += $(TOP)/hw/mcu/ti/msp430/msp430-gcc-support-files/include
LDFLAGS += $(addprefix -L,$(LDINC)) LDFLAGS += $(addprefix -L,$(LDINC))
SRC_C += src/portable/ti/msp430x5xx/dcd_msp430x5xx.c
INC += \ INC += \
$(TOP)/hw/mcu/ti/msp430/msp430-gcc-support-files/include \ $(TOP)/hw/mcu/ti/msp430/msp430-gcc-support-files/include \
$(TOP)/$(BOARD_PATH) $(TOP)/$(BOARD_PATH)
# For TinyUSB port source
VENDOR = ti
CHIP_FAMILY = msp430x5xx
# export for libmsp430.so to same installation # export for libmsp430.so to same installation
ifneq ($(OS),Windows_NT) ifneq ($(OS),Windows_NT)
export LD_LIBRARY_PATH=$(dir $(shell which MSP430Flasher)) export LD_LIBRARY_PATH=$(dir $(shell which MSP430Flasher))

View File

@ -21,6 +21,7 @@ MCU_DIR = hw/mcu/nxp/lpcopen/lpc43xx/lpc_chip_43xx
LD_FILE = hw/bsp/$(BOARD)/ngx4330.ld LD_FILE = hw/bsp/$(BOARD)/ngx4330.ld
SRC_C += \ SRC_C += \
src/portable/nxp/transdimension/dcd_transdimension.c \
$(MCU_DIR)/../gcc/cr_startup_lpc43xx.c \ $(MCU_DIR)/../gcc/cr_startup_lpc43xx.c \
$(MCU_DIR)/src/chip_18xx_43xx.c \ $(MCU_DIR)/src/chip_18xx_43xx.c \
$(MCU_DIR)/src/clock_18xx_43xx.c \ $(MCU_DIR)/src/clock_18xx_43xx.c \
@ -33,10 +34,6 @@ INC += \
$(TOP)/$(MCU_DIR)/inc \ $(TOP)/$(MCU_DIR)/inc \
$(TOP)/$(MCU_DIR)/inc/config_43xx $(TOP)/$(MCU_DIR)/inc/config_43xx
# For TinyUSB port source
VENDOR = nxp
CHIP_FAMILY = transdimension
# For freeRTOS port source # For freeRTOS port source
FREERTOS_PORT = ARM_CM4F FREERTOS_PORT = ARM_CM4F

View File

@ -34,6 +34,7 @@ LD_FILE ?= hw/bsp/nrf/boards/$(BOARD)/nrf52840_s140_v6.ld
LDFLAGS += -L$(TOP)/hw/mcu/nordic/nrfx/mdk LDFLAGS += -L$(TOP)/hw/mcu/nordic/nrfx/mdk
SRC_C += \ SRC_C += \
src/portable/nordic/nrf5x/dcd_nrf5x.c \
hw/mcu/nordic/nrfx/drivers/src/nrfx_power.c \ hw/mcu/nordic/nrfx/drivers/src/nrfx_power.c \
hw/mcu/nordic/nrfx/drivers/src/nrfx_uarte.c \ hw/mcu/nordic/nrfx/drivers/src/nrfx_uarte.c \
hw/mcu/nordic/nrfx/mdk/system_$(MCU_VARIANT).c hw/mcu/nordic/nrfx/mdk/system_$(MCU_VARIANT).c
@ -52,10 +53,6 @@ SRC_S += hw/mcu/nordic/nrfx/mdk/gcc_startup_$(MCU_VARIANT).S
ASFLAGS += -D__HEAP_SIZE=0 ASFLAGS += -D__HEAP_SIZE=0
# For TinyUSB port source
VENDOR = nordic
CHIP_FAMILY = nrf5x
# For freeRTOS port source # For freeRTOS port source
FREERTOS_PORT = ARM_CM4F FREERTOS_PORT = ARM_CM4F

View File

@ -14,6 +14,7 @@ CFLAGS += \
LD_FILE = hw/bsp/$(BOARD)/nuc121_flash.ld LD_FILE = hw/bsp/$(BOARD)/nuc121_flash.ld
SRC_C += \ SRC_C += \
src/portable/nuvoton/nuc121/dcd_nuc121.c \
hw/mcu/nuvoton/nuc121_125/Device/Nuvoton/NUC121/Source/system_NUC121.c \ hw/mcu/nuvoton/nuc121_125/Device/Nuvoton/NUC121/Source/system_NUC121.c \
hw/mcu/nuvoton/nuc121_125/StdDriver/src/adc.c \ hw/mcu/nuvoton/nuc121_125/StdDriver/src/adc.c \
hw/mcu/nuvoton/nuc121_125/StdDriver/src/bpwm.c \ hw/mcu/nuvoton/nuc121_125/StdDriver/src/bpwm.c \
@ -42,10 +43,6 @@ INC += \
$(TOP)/hw/mcu/nuvoton/nuc121_125/StdDriver/inc \ $(TOP)/hw/mcu/nuvoton/nuc121_125/StdDriver/inc \
$(TOP)/hw/mcu/nuvoton/nuc121_125/CMSIS/Include $(TOP)/hw/mcu/nuvoton/nuc121_125/CMSIS/Include
# For TinyUSB port source
VENDOR = nuvoton
CHIP_FAMILY = nuc121
# For freeRTOS port source # For freeRTOS port source
FREERTOS_PORT = ARM_CM0 FREERTOS_PORT = ARM_CM0

View File

@ -14,9 +14,10 @@ CFLAGS += \
LD_FILE = hw/bsp/$(BOARD)/nuc125_flash.ld LD_FILE = hw/bsp/$(BOARD)/nuc125_flash.ld
SRC_C += \ SRC_C += \
src/portable/nuvoton/nuc121/dcd_nuc121.c \
hw/mcu/nuvoton/nuc121_125/Device/Nuvoton/NUC121/Source/system_NUC121.c \ hw/mcu/nuvoton/nuc121_125/Device/Nuvoton/NUC121/Source/system_NUC121.c \
hw/mcu/nuvoton/nuc121_125/StdDriver/src/clk.c \ hw/mcu/nuvoton/nuc121_125/StdDriver/src/clk.c \
hw/mcu/nuvoton/nuc121_125/StdDriver/src/gpio.c hw/mcu/nuvoton/nuc121_125/StdDriver/src/gpio.c
SRC_S += \ SRC_S += \
hw/mcu/nuvoton/nuc121_125/Device/Nuvoton/NUC121/Source/GCC/startup_NUC121.S hw/mcu/nuvoton/nuc121_125/Device/Nuvoton/NUC121/Source/GCC/startup_NUC121.S
@ -26,10 +27,6 @@ INC += \
$(TOP)/hw/mcu/nuvoton/nuc121_125/StdDriver/inc \ $(TOP)/hw/mcu/nuvoton/nuc121_125/StdDriver/inc \
$(TOP)/hw/mcu/nuvoton/nuc121_125/CMSIS/Include $(TOP)/hw/mcu/nuvoton/nuc121_125/CMSIS/Include
# For TinyUSB port source
VENDOR = nuvoton
CHIP_FAMILY = nuc121
# For freeRTOS port source # For freeRTOS port source
FREERTOS_PORT = ARM_CM0 FREERTOS_PORT = ARM_CM0

View File

@ -14,6 +14,7 @@ CFLAGS += \
LD_FILE = hw/bsp/$(BOARD)/nuc126_flash.ld LD_FILE = hw/bsp/$(BOARD)/nuc126_flash.ld
SRC_C += \ SRC_C += \
src/portable/nuvoton/nuc121/dcd_nuc121.c \
hw/mcu/nuvoton/nuc126/Device/Nuvoton/NUC126/Source/system_NUC126.c \ hw/mcu/nuvoton/nuc126/Device/Nuvoton/NUC126/Source/system_NUC126.c \
hw/mcu/nuvoton/nuc126/StdDriver/src/acmp.c \ hw/mcu/nuvoton/nuc126/StdDriver/src/acmp.c \
hw/mcu/nuvoton/nuc126/StdDriver/src/adc.c \ hw/mcu/nuvoton/nuc126/StdDriver/src/adc.c \
@ -46,10 +47,6 @@ INC += \
$(TOP)/hw/mcu/nuvoton/nuc126/StdDriver/inc \ $(TOP)/hw/mcu/nuvoton/nuc126/StdDriver/inc \
$(TOP)/hw/mcu/nuvoton/nuc126/CMSIS/Include $(TOP)/hw/mcu/nuvoton/nuc126/CMSIS/Include
# For TinyUSB port source
VENDOR = nuvoton
CHIP_FAMILY = nuc121
# For freeRTOS port source # For freeRTOS port source
FREERTOS_PORT = ARM_CM0 FREERTOS_PORT = ARM_CM0

View File

@ -12,6 +12,7 @@ CFLAGS += \
LD_FILE = hw/bsp/nutiny_sdk_nuc120/nuc120_flash.ld LD_FILE = hw/bsp/nutiny_sdk_nuc120/nuc120_flash.ld
SRC_C += \ SRC_C += \
src/portable/nuvoton/nuc120/dcd_nuc120.c \
hw/mcu/nuvoton/nuc100_120/Device/Nuvoton/NUC100Series/Source/system_NUC100Series.c \ hw/mcu/nuvoton/nuc100_120/Device/Nuvoton/NUC100Series/Source/system_NUC100Series.c \
hw/mcu/nuvoton/nuc100_120/StdDriver/src/acmp.c \ hw/mcu/nuvoton/nuc100_120/StdDriver/src/acmp.c \
hw/mcu/nuvoton/nuc100_120/StdDriver/src/adc.c \ hw/mcu/nuvoton/nuc100_120/StdDriver/src/adc.c \
@ -42,10 +43,6 @@ INC += \
$(TOP)/hw/mcu/nuvoton/nuc100_120/StdDriver/inc \ $(TOP)/hw/mcu/nuvoton/nuc100_120/StdDriver/inc \
$(TOP)/hw/mcu/nuvoton/nuc100_120/CMSIS/Include $(TOP)/hw/mcu/nuvoton/nuc100_120/CMSIS/Include
# For TinyUSB port source
VENDOR = nuvoton
CHIP_FAMILY = nuc120
# For freeRTOS port source # For freeRTOS port source
FREERTOS_PORT = ARM_CM0 FREERTOS_PORT = ARM_CM0

View File

@ -13,6 +13,7 @@ CFLAGS += \
LD_FILE = hw/bsp/$(BOARD)/nuc505_flashtoram.ld LD_FILE = hw/bsp/$(BOARD)/nuc505_flashtoram.ld
SRC_C += \ SRC_C += \
src/portable/nuvoton/nuc505/dcd_nuc505.c \
hw/mcu/nuvoton/nuc505/Device/Nuvoton/NUC505Series/Source/system_NUC505Series.c \ hw/mcu/nuvoton/nuc505/Device/Nuvoton/NUC505Series/Source/system_NUC505Series.c \
hw/mcu/nuvoton/nuc505/StdDriver/src/adc.c \ hw/mcu/nuvoton/nuc505/StdDriver/src/adc.c \
hw/mcu/nuvoton/nuc505/StdDriver/src/clk.c \ hw/mcu/nuvoton/nuc505/StdDriver/src/clk.c \
@ -37,10 +38,6 @@ INC += \
$(TOP)/hw/mcu/nuvoton/nuc505/StdDriver/inc \ $(TOP)/hw/mcu/nuvoton/nuc505/StdDriver/inc \
$(TOP)/hw/mcu/nuvoton/nuc505/CMSIS/Include $(TOP)/hw/mcu/nuvoton/nuc505/CMSIS/Include
# For TinyUSB port source
VENDOR = nuvoton
CHIP_FAMILY = nuc505
# For freeRTOS port source # For freeRTOS port source
FREERTOS_PORT = ARM_CM4F FREERTOS_PORT = ARM_CM4F

View File

@ -12,6 +12,7 @@ CFLAGS += \
-DCFG_TUSB_MCU=OPT_MCU_SAMD11 -DCFG_TUSB_MCU=OPT_MCU_SAMD11
SRC_C += \ SRC_C += \
src/portable/microchip/samd/dcd_samd.c \
hw/mcu/microchip/samd11/gcc/gcc/startup_samd11.c \ hw/mcu/microchip/samd11/gcc/gcc/startup_samd11.c \
hw/mcu/microchip/samd11/gcc/system_samd11.c \ hw/mcu/microchip/samd11/gcc/system_samd11.c \
hw/mcu/microchip/samd11/hpl/gclk/hpl_gclk.c \ hw/mcu/microchip/samd11/hpl/gclk/hpl_gclk.c \
@ -32,9 +33,5 @@ INC += \
$(TOP)/hw/mcu/microchip/samd11/CMSIS/Include \ $(TOP)/hw/mcu/microchip/samd11/CMSIS/Include \
$(TOP)/hw/mcu/microchip/samd11/CMSIS/Core/Include $(TOP)/hw/mcu/microchip/samd11/CMSIS/Core/Include
# For TinyUSB port source
VENDOR = microchip
CHIP_FAMILY = samd
# For freeRTOS port source # For freeRTOS port source
FREERTOS_PORT = ARM_CM0 FREERTOS_PORT = ARM_CM0

View File

@ -13,6 +13,7 @@ CFLAGS += \
-DCFG_TUSB_MCU=OPT_MCU_SAMD21 -DCFG_TUSB_MCU=OPT_MCU_SAMD21
SRC_C += \ SRC_C += \
src/portable/microchip/samd/dcd_samd.c \
hw/mcu/microchip/samd21/gcc/gcc/startup_samd21.c \ hw/mcu/microchip/samd21/gcc/gcc/startup_samd21.c \
hw/mcu/microchip/samd21/gcc/system_samd21.c \ hw/mcu/microchip/samd21/gcc/system_samd21.c \
hw/mcu/microchip/samd21/hpl/gclk/hpl_gclk.c \ hw/mcu/microchip/samd21/hpl/gclk/hpl_gclk.c \
@ -32,10 +33,6 @@ INC += \
$(TOP)/hw/mcu/microchip/samd21/hri \ $(TOP)/hw/mcu/microchip/samd21/hri \
$(TOP)/hw/mcu/microchip/samd21/CMSIS/Include $(TOP)/hw/mcu/microchip/samd21/CMSIS/Include
# For TinyUSB port source
VENDOR = microchip
CHIP_FAMILY = samd
# For freeRTOS port source # For freeRTOS port source
FREERTOS_PORT = ARM_CM0 FREERTOS_PORT = ARM_CM0

View File

@ -16,6 +16,7 @@ CFLAGS += \
CFLAGS += -Wno-error=undef CFLAGS += -Wno-error=undef
SRC_C += \ SRC_C += \
src/portable/microchip/samd/dcd_samd.c \
hw/mcu/microchip/samd51/gcc/gcc/startup_samd51.c \ hw/mcu/microchip/samd51/gcc/gcc/startup_samd51.c \
hw/mcu/microchip/samd51/gcc/system_samd51.c \ hw/mcu/microchip/samd51/gcc/system_samd51.c \
hw/mcu/microchip/samd51/hpl/gclk/hpl_gclk.c \ hw/mcu/microchip/samd51/hpl/gclk/hpl_gclk.c \
@ -35,10 +36,6 @@ INC += \
$(TOP)/hw/mcu/microchip/samd51/hri \ $(TOP)/hw/mcu/microchip/samd51/hri \
$(TOP)/hw/mcu/microchip/samd51/CMSIS/Include $(TOP)/hw/mcu/microchip/samd51/CMSIS/Include
# For TinyUSB port source
VENDOR = microchip
CHIP_FAMILY = samd
# For freeRTOS port source # For freeRTOS port source
FREERTOS_PORT = ARM_CM4F FREERTOS_PORT = ARM_CM4F

View File

@ -12,9 +12,7 @@ CFLAGS += \
-nostdlib -nostartfiles \ -nostdlib -nostartfiles \
-D__SAME54P20A__ \ -D__SAME54P20A__ \
-DCONF_CPU_FREQUENCY=$(CONF_CPU_FREQUENCY) \ -DCONF_CPU_FREQUENCY=$(CONF_CPU_FREQUENCY) \
-DCFG_TUSB_MCU=OPT_MCU_SAME5X \ -DCFG_TUSB_MCU=OPT_MCU_SAME5X
# -DSVC_Handler=SVCall_Handler # -DSVC_Handler=SVCall_Handler
@ -22,6 +20,7 @@ CFLAGS += \
LD_FILE = hw/bsp/$(BOARD)/same54p20a_flash.ld LD_FILE = hw/bsp/$(BOARD)/same54p20a_flash.ld
SRC_C += \ SRC_C += \
src/portable/microchip/samd/dcd_samd.c \
hw/mcu/microchip/same54/gcc/gcc/startup_same54.c \ hw/mcu/microchip/same54/gcc/gcc/startup_same54.c \
hw/mcu/microchip/same54/gcc/system_same54.c \ hw/mcu/microchip/same54/gcc/system_same54.c \
hw/mcu/microchip/same54/hal/utils/src/utils_syscalls.c hw/mcu/microchip/same54/hal/utils/src/utils_syscalls.c
@ -36,14 +35,9 @@ INC += \
$(TOP)/hw/mcu/microchip/same54/hri \ $(TOP)/hw/mcu/microchip/same54/hri \
$(TOP)/hw/mcu/microchip/same54/CMSIS/Include $(TOP)/hw/mcu/microchip/same54/CMSIS/Include
# For TinyUSB port source
VENDOR = microchip
CHIP_FAMILY = samd
# For freeRTOS port source # For freeRTOS port source
FREERTOS_PORT = ARM_CM4F FREERTOS_PORT = ARM_CM4F
# For flash-jlink target # For flash-jlink target
JLINK_DEVICE = ATSAME54P20 JLINK_DEVICE = ATSAME54P20

View File

@ -19,6 +19,7 @@ ASF_DIR = hw/mcu/microchip/same70
LD_FILE = $(ASF_DIR)/same70b/gcc/gcc/same70q21b_flash.ld LD_FILE = $(ASF_DIR)/same70b/gcc/gcc/same70q21b_flash.ld
SRC_C += \ SRC_C += \
src/portable/template/dcd_template.c \
$(ASF_DIR)/same70b/gcc/gcc/startup_same70q21b.c \ $(ASF_DIR)/same70b/gcc/gcc/startup_same70q21b.c \
$(ASF_DIR)/same70b/gcc/system_same70q21b.c \ $(ASF_DIR)/same70b/gcc/system_same70q21b.c \
$(ASF_DIR)/hpl/core/hpl_init.c \ $(ASF_DIR)/hpl/core/hpl_init.c \

View File

@ -20,6 +20,7 @@ ASF_DIR = hw/mcu/microchip/samg55
LD_FILE = hw/bsp/$(BOARD)/samg55j19_flash.ld LD_FILE = hw/bsp/$(BOARD)/samg55j19_flash.ld
SRC_C += \ SRC_C += \
src/portable/microchip/samg/dcd_samg.c \
$(ASF_DIR)/samg55/gcc/gcc/startup_samg55.c \ $(ASF_DIR)/samg55/gcc/gcc/startup_samg55.c \
$(ASF_DIR)/samg55/gcc/system_samg55.c \ $(ASF_DIR)/samg55/gcc/system_samg55.c \
$(ASF_DIR)/hpl/core/hpl_init.c \ $(ASF_DIR)/hpl/core/hpl_init.c \
@ -40,10 +41,6 @@ INC += \
$(TOP)/$(ASF_DIR)/hri \ $(TOP)/$(ASF_DIR)/hri \
$(TOP)/$(ASF_DIR)/CMSIS/Core/Include $(TOP)/$(ASF_DIR)/CMSIS/Core/Include
# For TinyUSB port source
VENDOR = microchip
CHIP_FAMILY = samg
# For freeRTOS port source # For freeRTOS port source
FREERTOS_PORT = ARM_CM4F FREERTOS_PORT = ARM_CM4F

View File

@ -39,6 +39,8 @@ CFLAGS += -Wno-error=shadow
SPRESENSE_SDK = $(TOP)/hw/mcu/sony/cxd56/spresense-exported-sdk SPRESENSE_SDK = $(TOP)/hw/mcu/sony/cxd56/spresense-exported-sdk
SRC_C += src/portable/sony/cxd56/dcd_cxd56.c
INC += \ INC += \
$(SPRESENSE_SDK)/nuttx/include \ $(SPRESENSE_SDK)/nuttx/include \
$(SPRESENSE_SDK)/nuttx/arch \ $(SPRESENSE_SDK)/nuttx/arch \
@ -57,11 +59,7 @@ LDFLAGS += \
-nostartfiles \ -nostartfiles \
-nodefaultlibs \ -nodefaultlibs \
-Wl,--gc-sections \ -Wl,--gc-sections \
-u spresense_main \ -u spresense_main
# For TinyUSB port source
VENDOR = sony
CHIP_FAMILY = cxd56
$(MKSPK): $(BUILD)/$(PROJECT).elf $(MKSPK): $(BUILD)/$(PROJECT).elf
$(MAKE) -C $(TOP)/hw/mcu/sony/cxd56/mkspk $(MAKE) -C $(TOP)/hw/mcu/sony/cxd56/mkspk

View File

@ -23,6 +23,7 @@ CFLAGS += -Wno-error=unused-parameter -Wno-error=cast-align
LD_FILE = hw/bsp/$(BOARD)/stm32F070rbtx_flash.ld LD_FILE = hw/bsp/$(BOARD)/stm32F070rbtx_flash.ld
SRC_C += \ SRC_C += \
src/portable/st/stm32_fsdev/dcd_stm32_fsdev.c \
$(ST_CMSIS)/Source/Templates/system_stm32$(ST_FAMILY)xx.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.c \
$(ST_HAL_DRIVER)/Src/stm32$(ST_FAMILY)xx_hal_cortex.c \ $(ST_HAL_DRIVER)/Src/stm32$(ST_FAMILY)xx_hal_cortex.c \
@ -40,10 +41,6 @@ INC += \
$(TOP)/$(ST_HAL_DRIVER)/Inc \ $(TOP)/$(ST_HAL_DRIVER)/Inc \
$(TOP)/hw/bsp/$(BOARD) $(TOP)/hw/bsp/$(BOARD)
# For TinyUSB port source
VENDOR = st
CHIP_FAMILY = stm32_fsdev
# For freeRTOS port source # For freeRTOS port source
FREERTOS_PORT = ARM_CM0 FREERTOS_PORT = ARM_CM0

View File

@ -22,6 +22,7 @@ CFLAGS += -Wno-error=unused-parameter -Wno-error=cast-align
LD_FILE = hw/bsp/$(BOARD)/STM32F072RBTx_FLASH.ld LD_FILE = hw/bsp/$(BOARD)/STM32F072RBTx_FLASH.ld
SRC_C += \ SRC_C += \
src/portable/st/stm32_fsdev/dcd_stm32_fsdev.c \
$(ST_CMSIS)/Source/Templates/system_stm32$(ST_FAMILY)xx.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.c \
$(ST_HAL_DRIVER)/Src/stm32$(ST_FAMILY)xx_hal_cortex.c \ $(ST_HAL_DRIVER)/Src/stm32$(ST_FAMILY)xx_hal_cortex.c \
@ -39,10 +40,6 @@ INC += \
$(TOP)/$(ST_HAL_DRIVER)/Inc \ $(TOP)/$(ST_HAL_DRIVER)/Inc \
$(TOP)/hw/bsp/$(BOARD) $(TOP)/hw/bsp/$(BOARD)
# For TinyUSB port source
VENDOR = st
CHIP_FAMILY = stm32_fsdev
# For freeRTOS port source # For freeRTOS port source
FREERTOS_PORT = ARM_CM0 FREERTOS_PORT = ARM_CM0

View File

@ -21,6 +21,7 @@ CFLAGS += \
LD_FILE = hw/bsp/$(BOARD)/STM32F103XB_FLASH.ld LD_FILE = hw/bsp/$(BOARD)/STM32F103XB_FLASH.ld
SRC_C += \ SRC_C += \
src/portable/st/stm32_fsdev/dcd_stm32_fsdev.c \
$(ST_CMSIS)/Source/Templates/system_stm32$(ST_FAMILY)xx.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.c \
$(ST_HAL_DRIVER)/Src/stm32$(ST_FAMILY)xx_hal_cortex.c \ $(ST_HAL_DRIVER)/Src/stm32$(ST_FAMILY)xx_hal_cortex.c \
@ -37,10 +38,6 @@ INC += \
$(TOP)/$(ST_HAL_DRIVER)/Inc \ $(TOP)/$(ST_HAL_DRIVER)/Inc \
$(TOP)/hw/bsp/$(BOARD) $(TOP)/hw/bsp/$(BOARD)
# For TinyUSB port source
VENDOR = st
CHIP_FAMILY = stm32_fsdev
# For freeRTOS port source # For freeRTOS port source
FREERTOS_PORT = ARM_CM3 FREERTOS_PORT = ARM_CM3

View File

@ -21,6 +21,7 @@ CFLAGS += -Wno-error=sign-compare
LD_FILE = hw/bsp/$(BOARD)/STM32F207ZGTx_FLASH.ld LD_FILE = hw/bsp/$(BOARD)/STM32F207ZGTx_FLASH.ld
SRC_C += \ SRC_C += \
src/portable/st/synopsys/dcd_synopsys.c \
$(ST_CMSIS)/Source/Templates/system_stm32$(ST_FAMILY)xx.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.c \
$(ST_HAL_DRIVER)/Src/stm32$(ST_FAMILY)xx_hal_cortex.c \ $(ST_HAL_DRIVER)/Src/stm32$(ST_FAMILY)xx_hal_cortex.c \
@ -37,10 +38,6 @@ INC += \
$(TOP)/$(ST_HAL_DRIVER)/Inc \ $(TOP)/$(ST_HAL_DRIVER)/Inc \
$(TOP)/hw/bsp/$(BOARD) $(TOP)/hw/bsp/$(BOARD)
# For TinyUSB port source
VENDOR = st
CHIP_FAMILY = synopsys
# For freeRTOS port source # For freeRTOS port source
FREERTOS_PORT = ARM_CM3 FREERTOS_PORT = ARM_CM3

View File

@ -22,6 +22,7 @@ CFLAGS += -Wno-error=unused-parameter
LD_FILE = hw/bsp/$(BOARD)/STM32F303VCTx_FLASH.ld LD_FILE = hw/bsp/$(BOARD)/STM32F303VCTx_FLASH.ld
SRC_C += \ SRC_C += \
src/portable/st/stm32_fsdev/dcd_stm32_fsdev.c \
$(ST_CMSIS)/Source/Templates/system_stm32$(ST_FAMILY)xx.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.c \
$(ST_HAL_DRIVER)/Src/stm32$(ST_FAMILY)xx_hal_cortex.c \ $(ST_HAL_DRIVER)/Src/stm32$(ST_FAMILY)xx_hal_cortex.c \
@ -38,10 +39,6 @@ INC += \
$(TOP)/$(ST_HAL_DRIVER)/Inc \ $(TOP)/$(ST_HAL_DRIVER)/Inc \
$(TOP)/hw/bsp/$(BOARD) $(TOP)/hw/bsp/$(BOARD)
# For TinyUSB port source
VENDOR = st
CHIP_FAMILY = stm32_fsdev
# For freeRTOS port source # For freeRTOS port source
FREERTOS_PORT = ARM_CM4F FREERTOS_PORT = ARM_CM4F

View File

@ -21,6 +21,7 @@ CFLAGS += \
CFLAGS += -Wno-error=cast-align CFLAGS += -Wno-error=cast-align
SRC_C += \ SRC_C += \
src/portable/st/synopsys/dcd_synopsys.c \
$(ST_CMSIS)/Source/Templates/system_stm32$(ST_FAMILY)xx.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.c \
$(ST_HAL_DRIVER)/Src/stm32$(ST_FAMILY)xx_hal_cortex.c \ $(ST_HAL_DRIVER)/Src/stm32$(ST_FAMILY)xx_hal_cortex.c \
@ -35,10 +36,6 @@ INC += \
$(TOP)/$(ST_CMSIS)/Include \ $(TOP)/$(ST_CMSIS)/Include \
$(TOP)/$(ST_HAL_DRIVER)/Inc $(TOP)/$(ST_HAL_DRIVER)/Inc
# For TinyUSB port source
VENDOR = st
CHIP_FAMILY = synopsys
# For freeRTOS port source # For freeRTOS port source
FREERTOS_PORT = ARM_CM4F FREERTOS_PORT = ARM_CM4F

View File

@ -34,6 +34,7 @@ endif
CFLAGS += -Wno-error=shadow -Wno-error=cast-align CFLAGS += -Wno-error=shadow -Wno-error=cast-align
SRC_C += \ SRC_C += \
src/portable/st/synopsys/dcd_synopsys.c \
$(ST_CMSIS)/Source/Templates/system_stm32$(ST_FAMILY)xx.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.c \
$(ST_HAL_DRIVER)/Src/stm32$(ST_FAMILY)xx_hal_cortex.c \ $(ST_HAL_DRIVER)/Src/stm32$(ST_FAMILY)xx_hal_cortex.c \
@ -49,9 +50,5 @@ INC += \
$(TOP)/$(ST_CMSIS)/Include \ $(TOP)/$(ST_CMSIS)/Include \
$(TOP)/$(ST_HAL_DRIVER)/Inc $(TOP)/$(ST_HAL_DRIVER)/Inc
# For TinyUSB port source
VENDOR = st
CHIP_FAMILY = synopsys
# For freeRTOS port source # For freeRTOS port source
FREERTOS_PORT = ARM_CM7/r0p1 FREERTOS_PORT = ARM_CM7/r0p1

View File

@ -30,6 +30,7 @@ CFLAGS += -Wno-error=maybe-uninitialized -Wno-error=cast-align
# All source paths should be relative to the top level. # All source paths should be relative to the top level.
SRC_C += \ SRC_C += \
src/portable/st/synopsys/dcd_synopsys.c \
$(ST_CMSIS)/Source/Templates/system_stm32$(ST_FAMILY)xx.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.c \
$(ST_HAL_DRIVER)/Src/stm32$(ST_FAMILY)xx_hal_cortex.c \ $(ST_HAL_DRIVER)/Src/stm32$(ST_FAMILY)xx_hal_cortex.c \
@ -45,10 +46,6 @@ INC += \
$(TOP)/$(ST_CMSIS)/Include \ $(TOP)/$(ST_CMSIS)/Include \
$(TOP)/$(ST_HAL_DRIVER)/Inc $(TOP)/$(ST_HAL_DRIVER)/Inc
# For TinyUSB port source
VENDOR = st
CHIP_FAMILY = synopsys
# For freeRTOS port source # For freeRTOS port source
FREERTOS_PORT = ARM_CM7/r0p1 FREERTOS_PORT = ARM_CM7/r0p1

View File

@ -22,6 +22,7 @@ CFLAGS += -Wno-error=unused-parameter -Wno-error=maybe-uninitialized
LD_FILE = hw/bsp/$(BOARD)/STM32L053C8Tx_FLASH.ld LD_FILE = hw/bsp/$(BOARD)/STM32L053C8Tx_FLASH.ld
SRC_C += \ SRC_C += \
src/portable/st/stm32_fsdev/dcd_stm32_fsdev.c \
$(ST_CMSIS)/Source/Templates/system_stm32$(ST_FAMILY)xx.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.c \
$(ST_HAL_DRIVER)/Src/stm32$(ST_FAMILY)xx_hal_cortex.c \ $(ST_HAL_DRIVER)/Src/stm32$(ST_FAMILY)xx_hal_cortex.c \
@ -38,10 +39,6 @@ INC += \
$(TOP)/$(ST_HAL_DRIVER)/Inc \ $(TOP)/$(ST_HAL_DRIVER)/Inc \
$(TOP)/hw/bsp/$(BOARD) $(TOP)/hw/bsp/$(BOARD)
# For TinyUSB port source
VENDOR = st
CHIP_FAMILY = stm32_fsdev
# For freeRTOS port source # For freeRTOS port source
FREERTOS_PORT = ARM_CM0 FREERTOS_PORT = ARM_CM0

View File

@ -22,6 +22,7 @@ CFLAGS += -Wno-error=maybe-uninitialized -Wno-error=cast-align
LD_FILE = hw/bsp/$(BOARD)/STM32L476VGTx_FLASH.ld LD_FILE = hw/bsp/$(BOARD)/STM32L476VGTx_FLASH.ld
SRC_C += \ SRC_C += \
src/portable/st/synopsys/dcd_synopsys.c \
$(ST_CMSIS)/Source/Templates/system_stm32$(ST_FAMILY)xx.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.c \
$(ST_HAL_DRIVER)/Src/stm32$(ST_FAMILY)xx_hal_cortex.c \ $(ST_HAL_DRIVER)/Src/stm32$(ST_FAMILY)xx_hal_cortex.c \
@ -41,10 +42,6 @@ INC += \
$(TOP)/$(ST_HAL_DRIVER)/Inc \ $(TOP)/$(ST_HAL_DRIVER)/Inc \
$(TOP)/hw/bsp/$(BOARD) $(TOP)/hw/bsp/$(BOARD)
# For TinyUSB port source
VENDOR = st
CHIP_FAMILY = synopsys
# For freeRTOS port source # For freeRTOS port source
FREERTOS_PORT = ARM_CM4F FREERTOS_PORT = ARM_CM4F

View File

@ -23,6 +23,7 @@ CFLAGS += -Wno-error=maybe-uninitialized -Wno-error=cast-align
LD_FILE = hw/bsp/$(BOARD)/STM32L4RXxI_FLASH.ld LD_FILE = hw/bsp/$(BOARD)/STM32L4RXxI_FLASH.ld
SRC_C += \ SRC_C += \
src/portable/st/synopsys/dcd_synopsys.c \
$(ST_CMSIS)/Source/Templates/system_stm32$(ST_FAMILY)xx.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.c \
$(ST_HAL_DRIVER)/Src/stm32$(ST_FAMILY)xx_hal_cortex.c \ $(ST_HAL_DRIVER)/Src/stm32$(ST_FAMILY)xx_hal_cortex.c \
@ -42,10 +43,6 @@ INC += \
$(TOP)/$(ST_HAL_DRIVER)/Inc \ $(TOP)/$(ST_HAL_DRIVER)/Inc \
$(TOP)/hw/bsp/$(BOARD) $(TOP)/hw/bsp/$(BOARD)
# For TinyUSB port source
VENDOR = st
CHIP_FAMILY = synopsys
# For freeRTOS port source # For freeRTOS port source
FREERTOS_PORT = ARM_CM4F FREERTOS_PORT = ARM_CM4F