2021-03-18 16:28:44 +07:00
|
|
|
DEPS_SUBMODULES += hw/mcu/microchip
|
2021-02-03 13:33:40 -07:00
|
|
|
|
|
|
|
include $(TOP)/$(BOARD_PATH)/board.mk
|
|
|
|
|
2020-08-20 21:49:35 -06:00
|
|
|
CFLAGS += \
|
|
|
|
-mthumb \
|
2021-05-26 18:16:56 +07:00
|
|
|
-mabi=aapcs \
|
2020-08-20 21:49:35 -06:00
|
|
|
-mcpu=cortex-m0plus \
|
|
|
|
-nostdlib -nostartfiles \
|
|
|
|
-DCONF_DFLL_OVERWRITE_CALIBRATION=0 \
|
|
|
|
-DOSC32K_OVERWRITE_CALIBRATION=0 \
|
2020-10-07 19:15:53 +07:00
|
|
|
-DCFG_TUSB_MCU=OPT_MCU_SAMD11
|
2020-08-20 21:49:35 -06:00
|
|
|
|
2021-10-17 16:26:27 +07:00
|
|
|
# suppress warning caused by vendor mcu driver
|
2022-06-24 21:53:46 +07:00
|
|
|
CFLAGS += -Wno-error=cast-qual -Wno-error=redundant-decls
|
2021-10-17 16:26:27 +07:00
|
|
|
|
2020-08-20 21:49:35 -06:00
|
|
|
SRC_C += \
|
2021-03-17 16:52:07 +07:00
|
|
|
src/portable/microchip/samd/dcd_samd.c \
|
2020-08-20 21:49:35 -06: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 13:33:40 -07:00
|
|
|
$(TOP)/$(BOARD_PATH) \
|
2020-08-20 21:49:35 -06: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
|
|
|
|
|
|
|
|
# For freeRTOS port source
|
|
|
|
FREERTOS_PORT = ARM_CM0
|