Skip to content

Commit f75a019

Browse files
committed
bsp lpc17
1 parent 934baae commit f75a019

File tree

10 files changed

+24
-80
lines changed

10 files changed

+24
-80
lines changed

.github/workflows/build_arm.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ jobs:
3535
- 'broadcom_32bit'
3636
- 'imxrt'
3737
- 'kinetis_k32 kinetis_kl'
38-
- 'lpc11 lpc13 lpc15 lpc18'
38+
- 'lpc11 lpc13 lpc15 lpc17 lpc18'
3939
- 'lpc51 lpc54 lpc55'
4040
- 'mm32 msp432e4'
4141
- 'nrf'
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
# All source paths should be relative to the top level.
2+
LD_FILE = $(BOARD_PATH)/lpc1769.ld
3+
4+
# For flash-jlink target
5+
JLINK_DEVICE = LPC1769
6+
7+
# flash using jlink
8+
flash: flash-jlink

hw/bsp/lpc17/boards/mbed1768/board.mk

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
# All source paths should be relative to the top level.
2+
LD_FILE = $(BOARD_PATH)/lpc1768.ld
3+
4+
# For flash-jlink target
5+
JLINK_DEVICE = LPC1768
6+
PYOCD_TARGET = lpc1768
7+
8+
# flash using pyocd
9+
flash: flash-pyocd
File renamed without changes.
File renamed without changes.

hw/bsp/lpcxpresso1769/board.mk renamed to hw/bsp/lpc17/family.mk

Lines changed: 6 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
DEPS_SUBMODULES += hw/mcu/nxp/lpcopen
22

3+
MCU_DIR = hw/mcu/nxp/lpcopen/lpc175x_6x/lpc_chip_175x_6x
4+
include $(TOP)/$(BOARD_PATH)/board.mk
5+
36
CFLAGS += \
47
-flto \
58
-mthumb \
@@ -14,10 +17,10 @@ CFLAGS += \
1417
# lpc_types.h cause following errors
1518
CFLAGS += -Wno-error=strict-prototypes -Wno-error=cast-qual
1619

17-
MCU_DIR = hw/mcu/nxp/lpcopen/lpc175x_6x/lpc_chip_175x_6x
20+
# caused by freeRTOS port !!
21+
CFLAGS += -Wno-error=maybe-uninitialized
1822

19-
# All source paths should be relative to the top level.
20-
LD_FILE = hw/bsp/$(BOARD)/lpc1769.ld
23+
MCU_DIR = hw/mcu/nxp/lpcopen/lpc175x_6x/lpc_chip_175x_6x
2124

2225
SRC_C += \
2326
src/portable/nxp/lpc17_40/dcd_lpc17_40.c \
@@ -35,9 +38,3 @@ INC += \
3538

3639
# For freeRTOS port source
3740
FREERTOS_PORTABLE_SRC = $(FREERTOS_PORTABLE_PATH)/ARM_CM3
38-
39-
# For flash-jlink target
40-
JLINK_DEVICE = LPC1769
41-
42-
# flash using jlink
43-
flash: flash-jlink

hw/bsp/lpc51/boards/lpcxpresso51u68/board.mk

Lines changed: 0 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -4,32 +4,6 @@ CFLAGS += \
44
-DCPU_LPC51U68JBD64 \
55
-DCFG_TUSB_MEM_SECTION='__attribute__((section(".data")))'
66

7-
SRC_C += \
8-
src/portable/nxp/lpc_ip3511/dcd_lpc_ip3511.c \
9-
$(MCU_DIR)/system_LPC51U68.c \
10-
$(MCU_DIR)/drivers/fsl_clock.c \
11-
$(MCU_DIR)/drivers/fsl_power.c \
12-
$(MCU_DIR)/drivers/fsl_reset.c \
13-
$(SDK_DIR)/drivers/lpc_gpio/fsl_gpio.c \
14-
$(SDK_DIR)/drivers/flexcomm/fsl_flexcomm.c \
15-
$(SDK_DIR)/drivers/flexcomm/fsl_usart.c
16-
17-
INC += \
18-
$(TOP)/$(MCU_DIR)/../../CMSIS/Include \
19-
$(TOP)/$(MCU_DIR) \
20-
$(TOP)/$(MCU_DIR)/drivers \
21-
$(TOP)/$(SDK_DIR)/drivers/common \
22-
$(TOP)/$(SDK_DIR)/drivers/flexcomm \
23-
$(TOP)/$(SDK_DIR)/drivers/lpc_iocon \
24-
$(TOP)/$(SDK_DIR)/drivers/lpc_gpio
25-
26-
SRC_S += $(MCU_DIR)/gcc/startup_LPC51U68.S
27-
28-
LIBS += $(TOP)/$(MCU_DIR)/gcc/libpower.a
29-
30-
# For freeRTOS port source
31-
FREERTOS_PORTABLE_SRC = $(FREERTOS_PORTABLE_PATH)/ARM_CM0
32-
337
JLINK_DEVICE = LPC51U68
348
PYOCD_TARGET = LPC51U68
359

hw/bsp/mbed1768/board.mk

Lines changed: 0 additions & 44 deletions
This file was deleted.

0 commit comments

Comments
 (0)