summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorhathach <[email protected]>2023-03-19 17:40:44 +0700
committerhathach <[email protected]>2023-03-19 17:40:44 +0700
commit1154b7a9e733fd6571c2a47e52d6d49da0b3b096 (patch)
treef86fd36944d9dc1acf62735992e1097ff6cb1846
parent64c6b715cecb80788b23a5f8f07e256e1c96ed38 (diff)
add mising lpc13 file
-rw-r--r--hw/bsp/lpc13/family.mk39
1 files changed, 39 insertions, 0 deletions
diff --git a/hw/bsp/lpc13/family.mk b/hw/bsp/lpc13/family.mk
new file mode 100644
index 000000000..28f98e4ca
--- /dev/null
+++ b/hw/bsp/lpc13/family.mk
@@ -0,0 +1,39 @@
+DEPS_SUBMODULES += hw/mcu/nxp/lpcopen
+
+MCU_DIR = hw/mcu/nxp/lpcopen/lpc13xx/lpc_chip_13xx
+include $(TOP)/$(BOARD_PATH)/board.mk
+
+CFLAGS += \
+ -flto \
+ -mthumb \
+ -mabi=aapcs \
+ -mcpu=cortex-m3 \
+ -nostdlib \
+ -DCORE_M3 \
+ -D__USE_LPCOPEN \
+ -DCFG_EXAMPLE_MSC_READONLY \
+ -DCFG_EXAMPLE_VIDEO_READONLY \
+ -DCFG_TUSB_MCU=OPT_MCU_LPC13XX \
+ -DCFG_TUSB_MEM_ALIGN='__attribute__((aligned(64)))'
+
+# startup.c and lpc_types.h cause following errors
+CFLAGS += -Wno-error=strict-prototypes -Wno-error=redundant-decls
+
+# caused by freeRTOS port !!
+CFLAGS += -Wno-error=maybe-uninitialized
+
+SRC_C += \
+ src/portable/nxp/lpc_ip3511/dcd_lpc_ip3511.c \
+ $(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 += \
+ $(TOP)/$(MCU_DIR)/inc
+
+# For freeRTOS port source
+FREERTOS_PORTABLE_SRC = $(FREERTOS_PORTABLE_PATH)/ARM_CM3