2023-06-14 17:36:44 +02:00
|
|
|
SDK_DIR = hw/mcu/nxp/mcux-sdk
|
|
|
|
DEPS_SUBMODULES += $(SDK_DIR) lib/CMSIS_5
|
2023-03-18 12:30:51 +01:00
|
|
|
|
2023-03-18 13:50:24 +01:00
|
|
|
MCU_DIR = $(SDK_DIR)/devices/$(MCU)
|
2023-03-18 12:30:51 +01:00
|
|
|
include $(TOP)/$(BOARD_PATH)/board.mk
|
2023-06-24 13:54:14 +02:00
|
|
|
CPU_CORE ?= cortex-m0plus
|
2023-03-18 12:30:51 +01:00
|
|
|
|
|
|
|
CFLAGS += \
|
2023-03-18 13:50:24 +01:00
|
|
|
-DCFG_TUSB_MCU=OPT_MCU_KINETIS_KL \
|
|
|
|
|
|
|
|
LDFLAGS += \
|
2023-11-23 06:43:13 +01:00
|
|
|
-specs=nosys.specs -specs=nano.specs \
|
2023-03-18 13:50:24 +01:00
|
|
|
-Wl,--defsym,__stack_size__=0x400 \
|
|
|
|
-Wl,--defsym,__heap_size__=0
|
2023-03-18 12:30:51 +01:00
|
|
|
|
|
|
|
SRC_C += \
|
|
|
|
src/portable/nxp/khci/dcd_khci.c \
|
|
|
|
src/portable/nxp/khci/hcd_khci.c \
|
|
|
|
$(MCU_DIR)/system_$(MCU).c \
|
|
|
|
$(MCU_DIR)/drivers/fsl_clock.c \
|
2023-06-14 17:36:44 +02:00
|
|
|
$(SDK_DIR)/drivers/gpio/fsl_gpio.c \
|
|
|
|
$(SDK_DIR)/drivers/lpsci/fsl_lpsci.c \
|
|
|
|
$(SDK_DIR)/drivers/uart/fsl_uart.c \
|
2023-03-18 12:30:51 +01:00
|
|
|
|
|
|
|
INC += \
|
|
|
|
$(TOP)/$(BOARD_PATH) \
|
2023-06-14 17:36:44 +02:00
|
|
|
$(TOP)/lib/CMSIS_5/CMSIS/Core/Include \
|
2023-03-18 12:30:51 +01:00
|
|
|
$(TOP)/$(MCU_DIR) \
|
2023-06-14 17:36:44 +02:00
|
|
|
$(TOP)/$(MCU_DIR)/drivers \
|
|
|
|
$(TOP)/$(SDK_DIR)/drivers/common \
|
|
|
|
$(TOP)/$(SDK_DIR)/drivers/gpio \
|
|
|
|
$(TOP)/$(SDK_DIR)/drivers/lpsci \
|
|
|
|
$(TOP)/$(SDK_DIR)/drivers/port \
|
|
|
|
$(TOP)/$(SDK_DIR)/drivers/smc \
|
|
|
|
$(TOP)/$(SDK_DIR)/drivers/uart \
|