2019-08-24 00:52:46 +07:00
|
|
|
CFLAGS += \
|
|
|
|
-mthumb \
|
|
|
|
-mabi=aapcs \
|
|
|
|
-mcpu=cortex-m0plus \
|
|
|
|
-DCORE_M0PLUS \
|
|
|
|
-DCFG_TUSB_MCU=OPT_MCU_LPC51UXX \
|
|
|
|
-DCPU_LPC51U68JBD64 \
|
|
|
|
-Wfatal-errors \
|
|
|
|
-DCFG_TUSB_MEM_SECTION='__attribute__((section(".data.$$RAM3")))' \
|
|
|
|
-DCFG_TUSB_MEM_ALIGN='__attribute__((aligned(64)))'
|
|
|
|
|
|
|
|
# All source paths should be relative to the top level.
|
|
|
|
LD_FILE = hw/bsp/lpcxpresso51u68/LPC51U68_flash.ld
|
|
|
|
|
|
|
|
SRC_C += \
|
2019-08-31 23:53:10 +07:00
|
|
|
hw/mcu/nxp/lpc_driver/lpc51u6x/devices/LPC51U68/system_LPC51U68.c \
|
|
|
|
hw/mcu/nxp/lpc_driver/lpc51u6x/drivers/fsl_clock.c \
|
|
|
|
hw/mcu/nxp/lpc_driver/lpc51u6x/drivers/fsl_gpio.c \
|
|
|
|
hw/mcu/nxp/lpc_driver/lpc51u6x/drivers/fsl_power.c \
|
|
|
|
hw/mcu/nxp/lpc_driver/lpc51u6x/drivers/fsl_reset.c
|
2019-08-24 00:52:46 +07:00
|
|
|
|
|
|
|
INC += \
|
2019-08-31 23:53:10 +07:00
|
|
|
$(TOP)/hw/mcu/nxp/lpc_driver/lpc51u6x/CMSIS/Include \
|
|
|
|
$(TOP)/hw/mcu/nxp/lpc_driver/lpc51u6x/devices/LPC51U68 \
|
|
|
|
$(TOP)/hw/mcu/nxp/lpc_driver/lpc51u6x/drivers
|
2019-08-24 00:52:46 +07:00
|
|
|
|
|
|
|
SRC_S += hw/bsp/lpcxpresso51u68/startup_LPC51U68.S
|
|
|
|
|
2019-08-31 23:53:10 +07:00
|
|
|
LIBS += $(TOP)/hw/mcu/nxp/lpc_driver/lpc51u6x/devices/LPC51U68/libpower.a
|
2019-08-31 22:44:08 +07:00
|
|
|
|
2019-08-24 00:52:46 +07:00
|
|
|
# For TinyUSB port source
|
|
|
|
VENDOR = nxp
|
2019-09-01 00:51:58 +07:00
|
|
|
CHIP_FAMILY = lpc_usbd
|
2019-08-24 00:52:46 +07:00
|
|
|
|
|
|
|
# For freeRTOS port source
|
|
|
|
FREERTOS_PORT = ARM_CM0
|
|
|
|
|
|
|
|
# For flash-jlink target
|
|
|
|
JLINK_DEVICE = LPC51U68
|
|
|
|
JLINK_IF = swd
|
|
|
|
|
|
|
|
# flash using jlink
|
2019-08-31 22:44:08 +07:00
|
|
|
#flash: flash-jlink
|