espressif_tinyusb/hw/bsp/lpcxpresso1347/board.mk

46 lines
1.1 KiB
Makefile
Raw Normal View History

2021-04-28 13:11:49 +02:00
DEPS_SUBMODULES += hw/mcu/nxp/lpcopen
CFLAGS += \
-flto \
-mthumb \
-mabi=aapcs \
-mcpu=cortex-m3 \
-nostdlib \
-DCORE_M3 \
-D__USE_LPCOPEN \
2019-09-11 06:55:16 +02:00
-DCFG_EXAMPLE_MSC_READONLY \
-DCFG_EXAMPLE_VIDEO_READONLY \
2019-09-03 08:25:36 +02:00
-DCFG_TUSB_MCU=OPT_MCU_LPC13XX \
-DCFG_TUSB_MEM_SECTION='__attribute__((section(".data.$$RAM2")))' \
-DCFG_TUSB_MEM_ALIGN='__attribute__((aligned(64)))'
2019-09-06 10:06:04 +02:00
# startup.c and lpc_types.h cause following errors
2022-06-29 09:06:44 +02:00
CFLAGS += -Wno-error=strict-prototypes -Wno-error=redundant-decls
2019-09-06 10:06:04 +02:00
2019-11-11 05:51:51 +01:00
MCU_DIR = hw/mcu/nxp/lpcopen/lpc13xx/lpc_chip_13xx
2019-09-09 07:39:58 +02:00
# All source paths should be relative to the top level.
LD_FILE = hw/bsp/$(BOARD)/lpc1347.ld
SRC_C += \
src/portable/nxp/lpc_ip3511/dcd_lpc_ip3511.c \
2019-09-09 07:39:58 +02:00
$(MCU_DIR)/../gcc/cr_startup_lpc13xx.c \
$(MCU_DIR)/src/chip_13xx.c \
$(MCU_DIR)/src/clock_13xx.c \
$(MCU_DIR)/src/gpio_13xx_1.c \
$(MCU_DIR)/src/iocon_13xx.c \
$(MCU_DIR)/src/sysctl_13xx.c \
$(MCU_DIR)/src/sysinit_13xx.c
INC += \
2019-09-09 07:39:58 +02:00
$(TOP)/$(MCU_DIR)/inc
# For freeRTOS port source
FREERTOS_PORT = ARM_CM3
# For flash-jlink target
JLINK_DEVICE = LPC1347
# flash using jlink
flash: flash-jlink