File tree Expand file tree Collapse file tree 10 files changed +88
-91
lines changed Expand file tree Collapse file tree 10 files changed +88
-91
lines changed Original file line number Diff line number Diff line change 35
35
- ' broadcom_32bit'
36
36
- ' imxrt'
37
37
- ' kinetis_k32 kinetis_kl'
38
- - ' lpc15 lpc18'
38
+ - ' lpc11 lpc15 lpc18'
39
39
- ' lpc54 lpc55'
40
40
- ' mm32 msp432e4'
41
41
- ' nrf'
Original file line number Diff line number Diff line change
1
+ MCU = 11uxx
2
+ MCU_DRV = 11xx
3
+
4
+ CFLAGS += \
5
+ -DCORE_M0 \
6
+ -DCFG_EXAMPLE_MSC_READONLY \
7
+ -DCFG_EXAMPLE_VIDEO_READONLY \
8
+ -DCFG_TUSB_MEM_SECTION='__attribute__((section(".data.$$RAM2")))'
9
+
10
+ # mcu driver cause following warnings
11
+ CFLAGS += \
12
+ -Wno-error=strict-prototypes \
13
+ -Wno-error=unused-parameter \
14
+ -Wno-error=redundant-decls
15
+
16
+ # All source paths should be relative to the top level.
17
+ LD_FILE = $(BOARD_PATH ) /lpc11u37.ld
18
+
19
+ # For flash-jlink target
20
+ JLINK_DEVICE = LPC11U37/401
21
+ PYOCD_TARGET = lpc11u37
22
+
23
+ # flash using pyocd
24
+ flash : flash-pyocd
File renamed without changes.
Original file line number Diff line number Diff line change 25
25
*/
26
26
27
27
#include "chip.h"
28
- #include ".. /board.h"
28
+ #include "bsp /board.h"
29
29
30
30
//--------------------------------------------------------------------+
31
31
// Forward USB interrupt events to TinyUSB IRQ Handler
Original file line number Diff line number Diff line change
1
+ MCU = 11u6x
2
+ MCU_DRV = 11u6x
3
+
4
+ CFLAGS += \
5
+ -DCORE_M0PLUS \
6
+ -D__VTOR_PRESENT=0 \
7
+ -DCFG_TUSB_MEM_SECTION='__attribute__((section(".data.$$RAM3")))' \
8
+ -DCFG_TUSB_MEM_ALIGN='__attribute__((aligned(64)))'
9
+
10
+ # All source paths should be relative to the top level.
11
+ LD_FILE = $(BOARD_PATH ) /lpc11u68.ld
12
+
13
+ # For flash-jlink target
14
+ JLINK_DEVICE = LPC11U68
15
+ PYOCD_TARGET = lpc11u68
16
+
17
+ # flash using pyocd
18
+ flash : flash-pyocd
File renamed without changes.
Original file line number Diff line number Diff line change 25
25
*/
26
26
27
27
#include "chip.h"
28
- #include ".. /board.h"
28
+ #include "bsp /board.h"
29
29
30
30
//--------------------------------------------------------------------+
31
31
// Forward USB interrupt events to TinyUSB IRQ Handler
Original file line number Diff line number Diff line change
1
+ DEPS_SUBMODULES += hw/mcu/nxp/lpcopen
2
+
3
+ MCU_DIR = hw/mcu/nxp/lpcopen/lpc$(MCU ) /lpc_chip_$(MCU )
4
+ include $(TOP ) /$(BOARD_PATH ) /board.mk
5
+
6
+ CFLAGS += \
7
+ -flto \
8
+ -mthumb \
9
+ -mabi=aapcs \
10
+ -mcpu=cortex-m0plus \
11
+ -nostdlib \
12
+ -D__USE_LPCOPEN \
13
+ -DCFG_TUSB_MCU=OPT_MCU_LPC11UXX \
14
+ -DCFG_TUSB_MEM_ALIGN='__attribute__((aligned(64)))'
15
+
16
+ SRC_C += \
17
+ src/portable/nxp/lpc_ip3511/dcd_lpc_ip3511.c \
18
+ $(MCU_DIR ) /../gcc/cr_startup_lpc$(MCU_DRV ) .c \
19
+ $(MCU_DIR ) /src/chip_$(MCU_DRV ) .c \
20
+ $(MCU_DIR ) /src/clock_$(MCU_DRV ) .c \
21
+ $(MCU_DIR ) /src/iocon_$(MCU_DRV ) .c \
22
+ $(MCU_DIR ) /src/sysinit_$(MCU_DRV ) .c
23
+
24
+ ifeq ($(MCU ) ,11u6x)
25
+ SRC_C += \
26
+ $(MCU_DIR ) /src/gpio_$(MCU_DRV ) .c \
27
+ $(MCU_DIR ) /src/syscon_$(MCU_DRV ) .c \
28
+
29
+ else
30
+
31
+ SRC_C += \
32
+ $(MCU_DIR ) /src/gpio_$(MCU_DRV ) _1.c \
33
+ $(MCU_DIR ) /src/sysctl_$(MCU_DRV ) .c
34
+ endif
35
+
36
+ INC += \
37
+ $(TOP ) /$(MCU_DIR ) /inc
38
+
39
+ # For freeRTOS port source
40
+ FREERTOS_PORTABLE_SRC = $(FREERTOS_PORTABLE_PATH ) /ARM_CM0
41
+
42
+ # For flash-jlink target
43
+ JLINK_DEVICE = LPC11U68
Load Diff This file was deleted.
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments