mirror of
https://github.com/hathach/tinyusb.git
synced 2025-03-23 13:20:54 +00:00
bsp lpc13
This commit is contained in:
parent
80be1aa13d
commit
64c6b715ce
6
.github/workflows/build_arm.yml
vendored
6
.github/workflows/build_arm.yml
vendored
@ -35,7 +35,7 @@ jobs:
|
||||
- 'broadcom_32bit'
|
||||
- 'imxrt'
|
||||
- 'kinetis_k32 kinetis_kl'
|
||||
- 'lpc11 lpc15 lpc18'
|
||||
- 'lpc11 lpc13 lpc15 lpc18'
|
||||
- 'lpc54 lpc55'
|
||||
- 'mm32 msp432e4'
|
||||
- 'nrf'
|
||||
@ -102,7 +102,7 @@ jobs:
|
||||
run: find examples/ -path "*stm32l412nucleo/*.elf" -exec mv {} . \;
|
||||
|
||||
- name: Upload Artifacts for rp2040
|
||||
if: contains(matrix.family,'rp2040') && github.repository_owner == 'hathach')
|
||||
if: contains(matrix.family,'rp2040') && github.repository_owner == 'hathach'
|
||||
uses: actions/upload-artifact@v3
|
||||
with:
|
||||
name: rp2040
|
||||
@ -110,7 +110,7 @@ jobs:
|
||||
*.elf
|
||||
|
||||
- name: Upload Artifacts for stm32l412nucleo
|
||||
if: contains(matrix.family, 'stm32l4') && github.repository_owner == 'hathach')
|
||||
if: contains(matrix.family, 'stm32l4') && github.repository_owner == 'hathach'
|
||||
uses: actions/upload-artifact@v3
|
||||
with:
|
||||
name: stm32l4
|
||||
|
13
hw/bsp/lpc13/boards/lpcxpresso1347/board.mk
Normal file
13
hw/bsp/lpc13/boards/lpcxpresso1347/board.mk
Normal file
@ -0,0 +1,13 @@
|
||||
DEPS_SUBMODULES += hw/mcu/nxp/lpcopen
|
||||
|
||||
CFLAGS += \
|
||||
-DCFG_TUSB_MEM_SECTION='__attribute__((section(".data.$$RAM2")))'
|
||||
|
||||
# All source paths should be relative to the top level.
|
||||
LD_FILE = $(BOARD_PATH)/lpc1347.ld
|
||||
|
||||
# For flash-jlink target
|
||||
JLINK_DEVICE = LPC1347
|
||||
|
||||
# flash using jlink
|
||||
flash: flash-jlink
|
@ -1,45 +0,0 @@
|
||||
DEPS_SUBMODULES += hw/mcu/nxp/lpcopen
|
||||
|
||||
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_SECTION='__attribute__((section(".data.$$RAM2")))' \
|
||||
-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
|
||||
|
||||
MCU_DIR = hw/mcu/nxp/lpcopen/lpc13xx/lpc_chip_13xx
|
||||
|
||||
# All source paths should be relative to the top level.
|
||||
LD_FILE = hw/bsp/$(BOARD)/lpc1347.ld
|
||||
|
||||
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
|
||||
|
||||
# For flash-jlink target
|
||||
JLINK_DEVICE = LPC1347
|
||||
|
||||
# flash using jlink
|
||||
flash: flash-jlink
|
Loading…
x
Reference in New Issue
Block a user