Skip to content

Commit 1154b7a

Browse files
committed
add mising lpc13 file
1 parent 64c6b71 commit 1154b7a

File tree

1 file changed

+39
-0
lines changed

1 file changed

+39
-0
lines changed

hw/bsp/lpc13/family.mk

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
DEPS_SUBMODULES += hw/mcu/nxp/lpcopen
2+
3+
MCU_DIR = hw/mcu/nxp/lpcopen/lpc13xx/lpc_chip_13xx
4+
include $(TOP)/$(BOARD_PATH)/board.mk
5+
6+
CFLAGS += \
7+
-flto \
8+
-mthumb \
9+
-mabi=aapcs \
10+
-mcpu=cortex-m3 \
11+
-nostdlib \
12+
-DCORE_M3 \
13+
-D__USE_LPCOPEN \
14+
-DCFG_EXAMPLE_MSC_READONLY \
15+
-DCFG_EXAMPLE_VIDEO_READONLY \
16+
-DCFG_TUSB_MCU=OPT_MCU_LPC13XX \
17+
-DCFG_TUSB_MEM_ALIGN='__attribute__((aligned(64)))'
18+
19+
# startup.c and lpc_types.h cause following errors
20+
CFLAGS += -Wno-error=strict-prototypes -Wno-error=redundant-decls
21+
22+
# caused by freeRTOS port !!
23+
CFLAGS += -Wno-error=maybe-uninitialized
24+
25+
SRC_C += \
26+
src/portable/nxp/lpc_ip3511/dcd_lpc_ip3511.c \
27+
$(MCU_DIR)/../gcc/cr_startup_lpc13xx.c \
28+
$(MCU_DIR)/src/chip_13xx.c \
29+
$(MCU_DIR)/src/clock_13xx.c \
30+
$(MCU_DIR)/src/gpio_13xx_1.c \
31+
$(MCU_DIR)/src/iocon_13xx.c \
32+
$(MCU_DIR)/src/sysctl_13xx.c \
33+
$(MCU_DIR)/src/sysinit_13xx.c
34+
35+
INC += \
36+
$(TOP)/$(MCU_DIR)/inc
37+
38+
# For freeRTOS port source
39+
FREERTOS_PORTABLE_SRC = $(FREERTOS_PORTABLE_PATH)/ARM_CM3

0 commit comments

Comments
 (0)