create new lpc15 family
This commit is contained in:
parent
cd535537f6
commit
bbc6d4f9e8
|
@ -0,0 +1,6 @@
|
||||||
|
LD_FILE = $(BOARD_PATH)/lpc1549.ld
|
||||||
|
|
||||||
|
JLINK_DEVICE = LPC1549
|
||||||
|
|
||||||
|
# flash using pyocd
|
||||||
|
flash: flash-jlink
|
|
@ -25,7 +25,7 @@
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include "chip.h"
|
#include "chip.h"
|
||||||
#include "../board.h"
|
#include "bsp/board.h"
|
||||||
|
|
||||||
//--------------------------------------------------------------------+
|
//--------------------------------------------------------------------+
|
||||||
// Forward USB interrupt events to TinyUSB IRQ Handler
|
// Forward USB interrupt events to TinyUSB IRQ Handler
|
|
@ -1,5 +1,7 @@
|
||||||
DEPS_SUBMODULES += hw/mcu/nxp
|
DEPS_SUBMODULES += hw/mcu/nxp
|
||||||
|
|
||||||
|
include $(TOP)/$(BOARD_PATH)/board.mk
|
||||||
|
|
||||||
CFLAGS += \
|
CFLAGS += \
|
||||||
-flto \
|
-flto \
|
||||||
-mthumb \
|
-mthumb \
|
||||||
|
@ -17,9 +19,6 @@ CFLAGS += -Wno-error=strict-prototypes -Wno-error=unused-parameter -Wno-error=un
|
||||||
|
|
||||||
MCU_DIR = hw/mcu/nxp/lpcopen/lpc15xx/lpc_chip_15xx
|
MCU_DIR = hw/mcu/nxp/lpcopen/lpc15xx/lpc_chip_15xx
|
||||||
|
|
||||||
# All source paths should be relative to the top level.
|
|
||||||
LD_FILE = hw/bsp/$(BOARD)/lpc1549.ld
|
|
||||||
|
|
||||||
SRC_C += \
|
SRC_C += \
|
||||||
src/portable/nxp/lpc_ip3511/dcd_lpc_ip3511.c \
|
src/portable/nxp/lpc_ip3511/dcd_lpc_ip3511.c \
|
||||||
$(MCU_DIR)/../gcc/cr_startup_lpc15xx.c \
|
$(MCU_DIR)/../gcc/cr_startup_lpc15xx.c \
|
||||||
|
@ -33,13 +32,8 @@ SRC_C += \
|
||||||
$(MCU_DIR)/src/sysinit_15xx.c
|
$(MCU_DIR)/src/sysinit_15xx.c
|
||||||
|
|
||||||
INC += \
|
INC += \
|
||||||
|
$(TOP)/$(BOARD_PATH) \
|
||||||
$(TOP)/$(MCU_DIR)/inc
|
$(TOP)/$(MCU_DIR)/inc
|
||||||
|
|
||||||
# For freeRTOS port source
|
# For freeRTOS port source
|
||||||
FREERTOS_PORT = ARM_CM3
|
FREERTOS_PORT = ARM_CM3
|
||||||
|
|
||||||
# For flash-jlink target
|
|
||||||
JLINK_DEVICE = LPC1549
|
|
||||||
|
|
||||||
# flash using jlink
|
|
||||||
flash: flash-jlink
|
|
Loading…
Reference in New Issue