esp32-s2_dfu/hw/bsp/lpcxpresso1347/board.mk

39 lines
996 B
Makefile
Raw Normal View History

CFLAGS += \
-mthumb \
-mabi=aapcs \
-mcpu=cortex-m3 \
-nostdlib \
-DCORE_M3 \
-D__USE_LPCOPEN \
2019-09-03 08:25:36 +02:00
-DCFG_TUSB_MCU=OPT_MCU_LPC13XX \
-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/lpcxpresso1347/lpc1347.ld
SRC_C += \
hw/mcu/nxp/lpc_driver/lpc_chip_13xx/src/chip_13xx.c \
hw/mcu/nxp/lpc_driver/lpc_chip_13xx/src/clock_13xx.c \
hw/mcu/nxp/lpc_driver/lpc_chip_13xx/src/gpio_13xx_1.c \
hw/mcu/nxp/lpc_driver/lpc_chip_13xx/src/iocon_13xx.c \
hw/mcu/nxp/lpc_driver/lpc_chip_13xx/src/sysctl_13xx.c \
hw/mcu/nxp/lpc_driver/lpc_chip_13xx/src/sysinit_13xx.c
INC += \
$(TOP)/hw/mcu/nxp/lpc_driver/lpc_chip_13xx/inc
# For TinyUSB port source
VENDOR = nxp
2019-09-01 11:44:40 +02:00
CHIP_FAMILY = lpc_ip3511
# For freeRTOS port source
FREERTOS_PORT = ARM_CM3
# For flash-jlink target
JLINK_DEVICE = LPC1347
JLINK_IF = swd
# flash using jlink
flash: flash-jlink