2021-11-05 05:40:53 +01:00
|
|
|
UF2_FAMILY_ID = 0x00
|
|
|
|
MCU_DIR = hw/mcu/infineon/mtb-xmclib-cat3
|
|
|
|
|
2021-11-05 06:00:27 +01:00
|
|
|
DEPS_SUBMODULES += $(MCU_DIR)
|
2021-11-05 05:40:53 +01:00
|
|
|
|
|
|
|
include $(TOP)/$(BOARD_PATH)/board.mk
|
2023-06-24 13:38:41 +02:00
|
|
|
CPU_CORE ?= cortex-m4
|
2021-11-05 05:40:53 +01:00
|
|
|
|
|
|
|
CFLAGS += \
|
|
|
|
-flto \
|
|
|
|
-nostdlib -nostartfiles \
|
|
|
|
-DCFG_TUSB_MCU=OPT_MCU_XMC4000
|
|
|
|
|
|
|
|
# mcu driver cause following warnings
|
|
|
|
#CFLAGS += -Wno-error=shadow -Wno-error=cast-align
|
|
|
|
|
2021-11-05 07:13:21 +01:00
|
|
|
SKIP_NANOLIB = 1
|
|
|
|
|
2021-11-05 05:40:53 +01:00
|
|
|
SRC_C += \
|
|
|
|
src/portable/synopsys/dwc2/dcd_dwc2.c \
|
|
|
|
$(MCU_DIR)/Newlib/syscalls.c \
|
|
|
|
$(MCU_DIR)/CMSIS/Infineon/COMPONENT_$(MCU_VARIANT)/Source/system_$(MCU_VARIANT).c \
|
2023-07-20 10:53:29 +02:00
|
|
|
$(MCU_DIR)/XMCLib/src/xmc_gpio.c \
|
2021-11-05 05:40:53 +01:00
|
|
|
$(MCU_DIR)/XMCLib/src/xmc4_gpio.c \
|
2023-07-20 10:53:29 +02:00
|
|
|
$(MCU_DIR)/XMCLib/src/xmc4_scu.c \
|
|
|
|
$(MCU_DIR)/XMCLib/src/xmc_usic.c \
|
|
|
|
$(MCU_DIR)/XMCLib/src/xmc_uart.c
|
2021-11-05 05:40:53 +01:00
|
|
|
|
|
|
|
SRC_S += $(MCU_DIR)/CMSIS/Infineon/COMPONENT_$(MCU_VARIANT)/Source/TOOLCHAIN_GCC_ARM/startup_$(MCU_VARIANT).S
|
|
|
|
|
|
|
|
INC += \
|
|
|
|
$(TOP)/$(BOARD_PATH) \
|
|
|
|
$(TOP)/$(MCU_DIR)/CMSIS/Core/Include \
|
|
|
|
$(TOP)/$(MCU_DIR)/CMSIS/Infineon/COMPONENT_$(MCU_VARIANT)/Include \
|
|
|
|
$(TOP)/$(MCU_DIR)/XMCLib/inc
|