2021-03-18 10:28:44 +01:00
|
|
|
DEPS_SUBMODULES += hw/mcu/microchip
|
2021-02-03 21:33:40 +01:00
|
|
|
|
|
|
|
include $(TOP)/$(BOARD_PATH)/board.mk
|
2023-06-24 13:38:41 +02:00
|
|
|
CPU_CORE ?= cortex-m0plus
|
2021-02-03 21:33:40 +01:00
|
|
|
|
2020-08-21 05:49:35 +02:00
|
|
|
CFLAGS += \
|
|
|
|
-mthumb \
|
|
|
|
-nostdlib -nostartfiles \
|
|
|
|
-DCONF_DFLL_OVERWRITE_CALIBRATION=0 \
|
|
|
|
-DOSC32K_OVERWRITE_CALIBRATION=0 \
|
2023-03-19 06:47:05 +01:00
|
|
|
-DCFG_EXAMPLE_MSC_READONLY \
|
|
|
|
-DCFG_EXAMPLE_VIDEO_READONLY \
|
2020-10-07 14:15:53 +02:00
|
|
|
-DCFG_TUSB_MCU=OPT_MCU_SAMD11
|
2020-08-21 05:49:35 +02:00
|
|
|
|
2021-10-17 11:26:27 +02:00
|
|
|
# suppress warning caused by vendor mcu driver
|
2023-03-19 06:47:05 +01:00
|
|
|
CFLAGS += -Wno-error=redundant-decls
|
|
|
|
|
|
|
|
# SAM driver is flooded with -Wcast-qual which slow down complication significantly
|
|
|
|
CFLAGS_SKIP += -Wcast-qual
|
2021-10-17 11:26:27 +02:00
|
|
|
|
2020-08-21 05:49:35 +02:00
|
|
|
SRC_C += \
|
2021-03-17 10:52:07 +01:00
|
|
|
src/portable/microchip/samd/dcd_samd.c \
|
2020-08-21 05:49:35 +02:00
|
|
|
hw/mcu/microchip/samd11/gcc/gcc/startup_samd11.c \
|
|
|
|
hw/mcu/microchip/samd11/gcc/system_samd11.c \
|
|
|
|
hw/mcu/microchip/samd11/hpl/gclk/hpl_gclk.c \
|
|
|
|
hw/mcu/microchip/samd11/hpl/pm/hpl_pm.c \
|
|
|
|
hw/mcu/microchip/samd11/hpl/sysctrl/hpl_sysctrl.c \
|
|
|
|
hw/mcu/microchip/samd11/hal/src/hal_atomic.c
|
|
|
|
|
|
|
|
INC += \
|
2021-02-03 21:33:40 +01:00
|
|
|
$(TOP)/$(BOARD_PATH) \
|
2020-08-21 05:49:35 +02:00
|
|
|
$(TOP)/hw/mcu/microchip/samd11/ \
|
|
|
|
$(TOP)/hw/mcu/microchip/samd11/config \
|
|
|
|
$(TOP)/hw/mcu/microchip/samd11/include \
|
|
|
|
$(TOP)/hw/mcu/microchip/samd11/hal/include \
|
|
|
|
$(TOP)/hw/mcu/microchip/samd11/hal/utils/include \
|
|
|
|
$(TOP)/hw/mcu/microchip/samd11/hpl/pm/ \
|
|
|
|
$(TOP)/hw/mcu/microchip/samd11/hpl/port \
|
|
|
|
$(TOP)/hw/mcu/microchip/samd11/hri \
|
|
|
|
$(TOP)/hw/mcu/microchip/samd11/CMSIS/Include \
|
|
|
|
$(TOP)/hw/mcu/microchip/samd11/CMSIS/Core/Include
|