summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHiFiPhile <[email protected]>2023-08-06 13:41:10 +0200
committerHiFiPhile <[email protected]>2023-08-06 13:41:10 +0200
commit4f96eebe1bdd37787aa47815b5b9c921884e5a0b (patch)
treef92592f8accb973111552b1adccb73521a4dd20d
parent3db945283a694acd9df05df8fbcd13cdd3c819ca (diff)
Fix LPC54 build.
-rw-r--r--hw/bsp/lpc54/family.mk6
1 files changed, 4 insertions, 2 deletions
diff --git a/hw/bsp/lpc54/family.mk b/hw/bsp/lpc54/family.mk
index 7d8bb86cd..b9fcab809 100644
--- a/hw/bsp/lpc54/family.mk
+++ b/hw/bsp/lpc54/family.mk
@@ -7,7 +7,8 @@ CPU_CORE ?= cortex-m4
CFLAGS += \
-flto \
-DCFG_TUSB_MCU=OPT_MCU_LPC54XXX \
- -DCFG_TUSB_MEM_ALIGN='__attribute__((aligned(64)))'
+ -DCFG_TUSB_MEM_ALIGN='__attribute__((aligned(64)))' \
+ -DBOARD_TUD_RHPORT=$(PORT)
ifeq ($(PORT), 1)
$(info "PORT1 High Speed")
@@ -32,7 +33,8 @@ SRC_C += \
$(MCU_DIR)/drivers/fsl_reset.c \
$(SDK_DIR)/drivers/lpc_gpio/fsl_gpio.c \
$(SDK_DIR)/drivers/flexcomm/fsl_flexcomm.c \
- $(SDK_DIR)/drivers/flexcomm/fsl_usart.c
+ $(SDK_DIR)/drivers/flexcomm/fsl_usart.c \
+ $(SDK_DIR)/drivers/common/fsl_common_arm.c
INC += \
$(TOP)/$(BOARD_PATH) \