2019-09-01 06:44:55 +02:00
|
|
|
CFLAGS += \
|
|
|
|
-DCONF_DFLL_OVERWRITE_CALIBRATION=0 \
|
|
|
|
-D__SAMD21G18A__ \
|
|
|
|
-mthumb \
|
|
|
|
-mabi=aapcs-linux \
|
|
|
|
-mcpu=cortex-m0plus \
|
|
|
|
-nostdlib -nostartfiles \
|
|
|
|
-DCFG_TUSB_MCU=OPT_MCU_SAMD21
|
|
|
|
|
|
|
|
# All source paths should be relative to the top level.
|
2020-03-07 11:49:30 +01:00
|
|
|
LD_FILE = hw/bsp/$(BOARD)/samd21g18a_flash.ld
|
2019-09-01 06:44:55 +02:00
|
|
|
|
|
|
|
SRC_C += \
|
2019-11-20 10:06:40 +01:00
|
|
|
hw/mcu/microchip/samd/asf4/samd21/gcc/gcc/startup_samd21.c \
|
|
|
|
hw/mcu/microchip/samd/asf4/samd21/gcc/system_samd21.c \
|
|
|
|
hw/mcu/microchip/samd/asf4/samd21/hpl/gclk/hpl_gclk.c \
|
|
|
|
hw/mcu/microchip/samd/asf4/samd21/hpl/pm/hpl_pm.c \
|
|
|
|
hw/mcu/microchip/samd/asf4/samd21/hpl/sysctrl/hpl_sysctrl.c \
|
|
|
|
hw/mcu/microchip/samd/asf4/samd21/hal/src/hal_atomic.c
|
2019-09-01 06:44:55 +02:00
|
|
|
|
|
|
|
INC += \
|
2019-11-20 10:06:40 +01:00
|
|
|
$(TOP)/hw/mcu/microchip/samd/asf4/samd21/ \
|
|
|
|
$(TOP)/hw/mcu/microchip/samd/asf4/samd21/config \
|
|
|
|
$(TOP)/hw/mcu/microchip/samd/asf4/samd21/include \
|
|
|
|
$(TOP)/hw/mcu/microchip/samd/asf4/samd21/hal/include \
|
|
|
|
$(TOP)/hw/mcu/microchip/samd/asf4/samd21/hal/utils/include \
|
|
|
|
$(TOP)/hw/mcu/microchip/samd/asf4/samd51/hpl/pm/ \
|
|
|
|
$(TOP)/hw/mcu/microchip/samd/asf4/samd21/hpl/port \
|
|
|
|
$(TOP)/hw/mcu/microchip/samd/asf4/samd21/hri \
|
|
|
|
$(TOP)/hw/mcu/microchip/samd/asf4/samd21/CMSIS/Include
|
2019-09-01 06:44:55 +02:00
|
|
|
|
|
|
|
# For TinyUSB port source
|
|
|
|
VENDOR = microchip
|
2019-12-26 15:46:59 +01:00
|
|
|
CHIP_FAMILY = samd
|
2019-09-01 06:44:55 +02:00
|
|
|
|
|
|
|
# For freeRTOS port source
|
|
|
|
FREERTOS_PORT = ARM_CM0
|
|
|
|
|
|
|
|
# For flash-jlink target
|
|
|
|
JLINK_DEVICE = ATSAMD21G18
|
|
|
|
JLINK_IF = swd
|
|
|
|
|
|
|
|
# flash using jlink
|
|
|
|
flash: flash-jlink
|