2019-05-14 17:37:11 +07:00
|
|
|
CFLAGS += \
|
|
|
|
-mthumb \
|
|
|
|
-mabi=aapcs \
|
|
|
|
-mcpu=cortex-m0plus \
|
|
|
|
-nostdlib \
|
|
|
|
-DCORE_M0PLUS \
|
|
|
|
-D__VTOR_PRESENT=0 \
|
|
|
|
-DCFG_TUSB_MCU=OPT_MCU_LPC11UXX \
|
|
|
|
-D__USE_LPCOPEN \
|
2019-05-14 17:51:05 +07:00
|
|
|
-DCFG_TUSB_MEM_SECTION='__attribute__((section(".data.$$RAM3")))' \
|
|
|
|
-DCFG_TUSB_MEM_ALIGN='__attribute__((aligned(64)))'
|
2019-05-14 17:37:11 +07:00
|
|
|
|
|
|
|
# All source paths should be relative to the top level.
|
|
|
|
LD_FILE = hw/bsp/lpcxpresso11u68/lpc11u68.ld
|
|
|
|
|
|
|
|
SRC_C += \
|
2019-08-31 23:53:10 +07:00
|
|
|
hw/mcu/nxp/lpc_driver/lpc_chip_11u6x/src/chip_11u6x.c \
|
|
|
|
hw/mcu/nxp/lpc_driver/lpc_chip_11u6x/src/clock_11u6x.c \
|
|
|
|
hw/mcu/nxp/lpc_driver/lpc_chip_11u6x/src/gpio_11u6x.c \
|
|
|
|
hw/mcu/nxp/lpc_driver/lpc_chip_11u6x/src/iocon_11u6x.c \
|
|
|
|
hw/mcu/nxp/lpc_driver/lpc_chip_11u6x/src/syscon_11u6x.c \
|
|
|
|
hw/mcu/nxp/lpc_driver/lpc_chip_11u6x/src/sysinit_11u6x.c
|
2019-05-14 17:37:11 +07:00
|
|
|
|
|
|
|
INC += \
|
2019-08-31 23:53:10 +07:00
|
|
|
$(TOP)/hw/mcu/nxp/lpc_driver/lpc_chip_11u6x/inc
|
2019-05-14 17:37:11 +07:00
|
|
|
|
|
|
|
# For TinyUSB port source
|
|
|
|
VENDOR = nxp
|
2019-09-01 16:44:40 +07:00
|
|
|
CHIP_FAMILY = lpc_ip3511
|
2019-05-14 17:37:11 +07:00
|
|
|
|
|
|
|
# For freeRTOS port source
|
|
|
|
FREERTOS_PORT = ARM_CM0
|
|
|
|
|
|
|
|
# For flash-jlink target
|
|
|
|
JLINK_DEVICE = LPC11U68
|
|
|
|
JLINK_IF = swd
|
|
|
|
|
|
|
|
# flash using jlink
|
|
|
|
flash: flash-jlink
|