38 lines
976 B
Makefile
Raw Normal View History

2023-03-19 17:58:20 +07:00
MCU = LPC51U68
2019-08-24 00:52:46 +07:00
CFLAGS += \
-DCPU_LPC51U68JBD64 \
2023-03-19 17:58:20 +07:00
-DCFG_TUSB_MEM_SECTION='__attribute__((section(".data")))'
2019-08-24 00:52:46 +07:00
SRC_C += \
src/portable/nxp/lpc_ip3511/dcd_lpc_ip3511.c \
2019-09-01 15:11:09 +07:00
$(MCU_DIR)/system_LPC51U68.c \
$(MCU_DIR)/drivers/fsl_clock.c \
$(MCU_DIR)/drivers/fsl_power.c \
2021-04-28 23:44:04 +07:00
$(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
2019-08-24 00:52:46 +07:00
INC += \
2019-09-05 16:12:13 +07:00
$(TOP)/$(MCU_DIR)/../../CMSIS/Include \
2019-09-01 15:11:09 +07:00
$(TOP)/$(MCU_DIR) \
2021-04-28 23:44:04 +07:00
$(TOP)/$(MCU_DIR)/drivers \
$(TOP)/$(SDK_DIR)/drivers/common \
$(TOP)/$(SDK_DIR)/drivers/flexcomm \
$(TOP)/$(SDK_DIR)/drivers/lpc_iocon \
$(TOP)/$(SDK_DIR)/drivers/lpc_gpio
2019-08-24 00:52:46 +07:00
2019-09-01 15:11:09 +07:00
SRC_S += $(MCU_DIR)/gcc/startup_LPC51U68.S
2019-08-24 00:52:46 +07:00
2019-09-01 15:11:09 +07:00
LIBS += $(TOP)/$(MCU_DIR)/gcc/libpower.a
2019-08-31 22:44:08 +07:00
2019-08-24 00:52:46 +07:00
# For freeRTOS port source
FREERTOS_PORTABLE_SRC = $(FREERTOS_PORTABLE_PATH)/ARM_CM0
2019-08-24 00:52:46 +07:00
JLINK_DEVICE = LPC51U68
2021-04-28 23:44:04 +07:00
PYOCD_TARGET = LPC51U68
2019-08-24 00:52:46 +07:00
2019-09-01 21:04:43 +07:00
# flash using pyocd (51u68 is not supported yet)
2021-04-28 23:44:04 +07:00
flash: flash-pyocd