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
|
|
|
|
|
|
|
|
CFLAGS += \
|
|
|
|
-mthumb \
|
|
|
|
-mabi=aapcs \
|
2023-03-18 13:50:24 +01:00
|
|
|
-mcpu=cortex-m0plus \
|
|
|
|
-DCFG_TUSB_MCU=OPT_MCU_KINETIS_KL \
|
|
|
|
|
|
|
|
LDFLAGS += \
|
|
|
|
-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 \
|
2023-03-18 13:50:24 +01:00
|
|
|
|
|
|
|
# For freeRTOS port source
|
|
|
|
FREERTOS_PORTABLE_SRC = $(FREERTOS_PORTABLE_PATH)/ARM_CM0
|