2023-03-18 18:30:51 +07:00
|
|
|
MCU = MKL25Z4
|
2021-03-04 22:50:45 +07:00
|
|
|
|
2020-11-27 00:49:25 +09:00
|
|
|
CFLAGS += \
|
|
|
|
-DCPU_MKL25Z128VLK4 \
|
2023-03-18 20:30:49 +07:00
|
|
|
-DCFG_EXAMPLE_VIDEO_READONLY \
|
|
|
|
-DCFG_EXAMPLE_MSC_READONLY
|
2020-11-27 00:49:25 +09:00
|
|
|
|
|
|
|
# mcu driver cause following warnings
|
2022-06-29 14:06:44 +07:00
|
|
|
CFLAGS += -Wno-error=unused-parameter -Wno-error=format -Wno-error=redundant-decls
|
2020-11-27 00:49:25 +09:00
|
|
|
|
2023-06-14 22:36:44 +07:00
|
|
|
SRC_C += \
|
|
|
|
$(BOARD_PATH)/clock_config.c \
|
|
|
|
|
2020-11-27 00:49:25 +09:00
|
|
|
# All source paths should be relative to the top level.
|
2023-06-14 22:36:44 +07:00
|
|
|
LD_FILE = $(FAMILY_PATH)/gcc/MKL25Z128xxx4_flash.ld
|
|
|
|
|
|
|
|
SRC_S += $(FAMILY_PATH)/gcc/startup_$(MCU).S
|
2020-11-27 00:49:25 +09:00
|
|
|
|
|
|
|
# For flash-jlink target
|
|
|
|
JLINK_DEVICE = MKL25Z128xxx4
|
|
|
|
|
|
|
|
# For flash-pyocd target
|
|
|
|
PYOCD_TARGET = mkl25zl128
|
|
|
|
|
|
|
|
# flash using pyocd
|
2023-03-18 18:30:51 +07:00
|
|
|
flash: flash-jlink
|