2023-03-18 18:30:51 +07:00
|
|
|
MCU = K32L2B31A
|
|
|
|
|
2023-06-24 18:26:51 +07:00
|
|
|
CFLAGS += -DCPU_K32L2B31VLH0A
|
2023-03-18 18:30:51 +07:00
|
|
|
|
|
|
|
# mcu driver cause following warnings
|
|
|
|
CFLAGS += -Wno-error=unused-parameter -Wno-error=redundant-decls
|
|
|
|
|
|
|
|
# All source paths should be relative to the top level.
|
|
|
|
LD_FILE = $(MCU_DIR)/gcc/K32L2B31xxxxA_flash.ld
|
|
|
|
|
2023-03-18 19:50:24 +07:00
|
|
|
SRC_C += \
|
|
|
|
$(MCU_DIR)/project_template/clock_config.c \
|
|
|
|
|
2023-03-18 18:30:51 +07:00
|
|
|
# For flash-jlink target
|
|
|
|
JLINK_DEVICE = K32L2B31xxxxA
|
|
|
|
|
|
|
|
# For flash-pyocd target
|
|
|
|
PYOCD_TARGET = K32L2B
|
|
|
|
|
|
|
|
# flash using pyocd
|
|
|
|
flash: flash-pyocd
|