2021-04-28 18:30:19 +07:00
|
|
|
DEPS_SUBMODULES += hw/mcu/nxp/mcux-sdk
|
2021-03-04 22:50:45 +07:00
|
|
|
|
2021-04-28 15:58:43 +07:00
|
|
|
include $(TOP)/$(BOARD_PATH)/board.mk
|
|
|
|
|
2019-09-01 15:30:25 +07:00
|
|
|
CFLAGS += \
|
2019-11-20 16:06:40 +07:00
|
|
|
-flto \
|
2019-09-01 15:30:25 +07:00
|
|
|
-mthumb \
|
|
|
|
-mabi=aapcs \
|
|
|
|
-mcpu=cortex-m4 \
|
|
|
|
-mfloat-abi=hard \
|
|
|
|
-mfpu=fpv4-sp-d16 \
|
2019-09-03 13:25:36 +07:00
|
|
|
-DCFG_TUSB_MCU=OPT_MCU_LPC54XXX \
|
2019-09-01 15:30:25 +07:00
|
|
|
-DCFG_TUSB_MEM_SECTION='__attribute__((section(".data")))' \
|
|
|
|
-DCFG_TUSB_MEM_ALIGN='__attribute__((aligned(64)))'
|
|
|
|
|
2019-09-27 00:15:43 +07:00
|
|
|
# mcu driver cause following warnings
|
|
|
|
CFLAGS += -Wno-error=unused-parameter
|
|
|
|
|
2021-04-28 18:30:19 +07:00
|
|
|
MCU_DIR = hw/mcu/nxp/mcux-sdk/devices/LPC54114
|
2019-09-01 15:30:25 +07:00
|
|
|
|
|
|
|
SRC_C += \
|
2021-03-17 16:52:07 +07:00
|
|
|
src/portable/nxp/lpc_ip3511/dcd_lpc_ip3511.c \
|
2019-09-01 15:30:25 +07:00
|
|
|
$(MCU_DIR)/system_LPC54114_cm4.c \
|
|
|
|
$(MCU_DIR)/drivers/fsl_clock.c \
|
|
|
|
$(MCU_DIR)/drivers/fsl_gpio.c \
|
|
|
|
$(MCU_DIR)/drivers/fsl_power.c \
|
|
|
|
$(MCU_DIR)/drivers/fsl_reset.c
|
|
|
|
|
|
|
|
INC += \
|
2021-04-28 15:58:43 +07:00
|
|
|
$(TOP)/$(BOARD_PATH) \
|
2019-09-05 16:12:13 +07:00
|
|
|
$(TOP)/$(MCU_DIR)/../../CMSIS/Include \
|
2019-09-01 15:30:25 +07:00
|
|
|
$(TOP)/$(MCU_DIR) \
|
|
|
|
$(TOP)/$(MCU_DIR)/drivers
|
|
|
|
|
|
|
|
SRC_S += $(MCU_DIR)/gcc/startup_LPC54114_cm4.S
|
|
|
|
|
|
|
|
LIBS += $(TOP)/$(MCU_DIR)/gcc/libpower_cm4_hardabi.a
|
|
|
|
|
|
|
|
# For freeRTOS port source
|
2020-03-11 00:09:37 +07:00
|
|
|
FREERTOS_PORT = ARM_CM4F
|