tinyusb/hw/bsp/lpc54/family.mk

41 lines
964 B
Makefile
Raw Normal View History

2021-03-18 16:28:44 +07:00
DEPS_SUBMODULES += hw/mcu/nxp
2021-04-28 15:58:43 +07:00
include $(TOP)/$(BOARD_PATH)/board.mk
2019-09-01 15:30:25 +07:00
CFLAGS += \
-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)))'
# mcu driver cause following warnings
CFLAGS += -Wno-error=unused-parameter
2019-11-11 11:51:51 +07:00
MCU_DIR = hw/mcu/nxp/sdk/devices/LPC54114
2019-09-01 15:30:25 +07:00
SRC_C += \
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
FREERTOS_PORT = ARM_CM4F