62c613f6d2
Add FT90X and FT93X to the list of devices in tusb_option.h. 1700 for FT90x and 1701 for FT93x. Set endpoint attributes for FT90x and FT93x in dcd_attr.h. Add FT90x routines for USB device in src/portable/bridgetek/ft90x/dcd_ft90x.c The location for hardware header files and libraries is hw/mcu/bridgetek/ft90x/hardware. There are no files in the repository, but files will be linked as a submodule in the future. The required files can be copied from or linked to the location "C:/Program Files(x86)/Bridgetek/FT9xx Toolchain/Toolchain/hardware" once the toolchain is installed. Makefile for the MM900EV1B board for developing with an FT900 device is present. Use "BOARD=mm900ev1b".
36 lines
970 B
Makefile
36 lines
970 B
Makefile
|
|
CROSS_COMPILE = ft32-elf-
|
|
DEPS_SUBMODULES += hw/mcu/bridgetek/ft90x/hardware
|
|
SKIP_NANOLIB = 1
|
|
|
|
# This is installed at "C:/Program Files(x86)/Bridgetek/FT9xx Toolchain/Toolchain/hardware"
|
|
FT90X_SDK = $(TOP)/hw/mcu/bridgetek/ft90x/hardware
|
|
|
|
CFLAGS += \
|
|
-D__FT900__ \
|
|
-fvar-tracking \
|
|
-fvar-tracking-assignments \
|
|
-fmessage-length=0 \
|
|
-ffunction-sections \
|
|
-DCFG_TUSB_MCU=OPT_MCU_FT90X
|
|
|
|
# lwip/src/core/raw.c:334:43: error: declaration of 'recv' shadows a global declaration
|
|
CFLAGS += -Wno-error=shadow
|
|
CFLAGS:=$(filter-out -Wcast-function-type,$(CFLAGS))
|
|
|
|
# All source paths should be relative to the top level.
|
|
LDINC += $(FT90X_SDK)/lib/Release
|
|
LIBS += -lft900
|
|
LD_FILE = hw/mcu/bridgetek/ft90x/hardware/scripts/ldscript.ld
|
|
LDFLAGS += $(addprefix -L,$(LDINC)) \
|
|
-Xlinker --entry=_start \
|
|
-Wl,-lc
|
|
|
|
SRC_C += src/portable/bridgetek/ft90x/dcd_ft90x.c
|
|
|
|
#SRC_S += hw/mcu/bridgetek/ft90x/hardware/scripts/crt0.S
|
|
|
|
INC += \
|
|
$(FT90X_SDK)/include \
|
|
$(TOP)/$(BOARD_PATH)
|