support LPC51u68 #100

This commit is contained in:
hathach
2019-08-31 22:44:08 +07:00
parent c70c61ce26
commit bac75a81fd
5 changed files with 112 additions and 32 deletions
+6 -3
View File
@@ -13,18 +13,21 @@ CFLAGS += \
LD_FILE = hw/bsp/lpcxpresso51u68/LPC51U68_flash.ld
SRC_C += \
hw/mcu/nxp/lpcopen/lpc51u6x/system_LPC51U68.c \
hw/mcu/nxp/lpcopen/lpc51u6x/devices/LPC51U68/system_LPC51U68.c \
hw/mcu/nxp/lpcopen/lpc51u6x/drivers/fsl_clock.c \
hw/mcu/nxp/lpcopen/lpc51u6x/drivers/fsl_gpio.c \
hw/mcu/nxp/lpcopen/lpc51u6x/drivers/fsl_power.c \
hw/mcu/nxp/lpcopen/lpc51u6x/drivers/fsl_reset.c
INC += \
$(TOP)/hw/mcu/nxp/lpcopen/lpc51u6x \
$(TOP)/hw/mcu/nxp/lpcopen/lpc51u6x/CMSIS/Include \
$(TOP)/hw/mcu/nxp/lpcopen/lpc51u6x/devices/LPC51U68 \
$(TOP)/hw/mcu/nxp/lpcopen/lpc51u6x/drivers
SRC_S += hw/bsp/lpcxpresso51u68/startup_LPC51U68.S
LIBS += $(TOP)/hw/mcu/nxp/lpcopen/lpc51u6x/devices/LPC51U68/libpower.a
# For TinyUSB port source
VENDOR = nxp
CHIP_FAMILY = lpc11_13_15
@@ -37,4 +40,4 @@ JLINK_DEVICE = LPC51U68
JLINK_IF = swd
# flash using jlink
flash: flash-jlink
#flash: flash-jlink