mirror of
https://github.com/hathach/tinyusb.git
synced 2025-01-17 05:32:55 +08:00
41 lines
964 B
Makefile
41 lines
964 B
Makefile
DEPS_SUBMODULES += hw/mcu/nxp
|
|
|
|
include $(TOP)/$(BOARD_PATH)/board.mk
|
|
|
|
CFLAGS += \
|
|
-flto \
|
|
-mthumb \
|
|
-mabi=aapcs \
|
|
-mcpu=cortex-m4 \
|
|
-mfloat-abi=hard \
|
|
-mfpu=fpv4-sp-d16 \
|
|
-DCFG_TUSB_MCU=OPT_MCU_LPC54XXX \
|
|
-DCFG_TUSB_MEM_SECTION='__attribute__((section(".data")))' \
|
|
-DCFG_TUSB_MEM_ALIGN='__attribute__((aligned(64)))'
|
|
|
|
# mcu driver cause following warnings
|
|
CFLAGS += -Wno-error=unused-parameter
|
|
|
|
MCU_DIR = hw/mcu/nxp/sdk/devices/LPC54114
|
|
|
|
SRC_C += \
|
|
src/portable/nxp/lpc_ip3511/dcd_lpc_ip3511.c \
|
|
$(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 += \
|
|
$(TOP)/$(BOARD_PATH) \
|
|
$(TOP)/$(MCU_DIR)/../../CMSIS/Include \
|
|
$(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
|