mirror of
https://github.com/hathach/tinyusb.git
synced 2025-01-17 05:32:55 +08:00
rename FREERTOS_PORT to FREERTOS_PORTABLE_SRC
also fix trailing spaces
This commit is contained in:
parent
e0b1de923c
commit
ffdffc7e06
@ -3,14 +3,14 @@ DEPS_SUBMODULES += lib/FreeRTOS-Kernel
|
||||
include ../../make.mk
|
||||
|
||||
FREERTOS_SRC = lib/FreeRTOS-Kernel
|
||||
FREERTOS_PORT_PATH= $(FREERTOS_SRC)/portable/$(if $(USE_IAR),IAR,GCC)
|
||||
FREERTOS_PORTABLE_PATH= $(FREERTOS_SRC)/portable/$(if $(USE_IAR),IAR,GCC)
|
||||
|
||||
INC += \
|
||||
src \
|
||||
src/FreeRTOSConfig \
|
||||
$(TOP)/hw \
|
||||
$(TOP)/$(FREERTOS_SRC)/include \
|
||||
$(TOP)/$(FREERTOS_PORT)
|
||||
$(TOP)/$(FREERTOS_PORTABLE_SRC)
|
||||
|
||||
# Example source
|
||||
EXAMPLE_SOURCE = \
|
||||
@ -27,10 +27,10 @@ SRC_C += \
|
||||
$(FREERTOS_SRC)/queue.c \
|
||||
$(FREERTOS_SRC)/tasks.c \
|
||||
$(FREERTOS_SRC)/timers.c \
|
||||
$(subst $(TOP)/,,$(wildcard $(TOP)/$(FREERTOS_PORT)/*.c))
|
||||
$(subst $(TOP)/,,$(wildcard $(TOP)/$(FREERTOS_PORTABLE_SRC)/*.c))
|
||||
|
||||
SRC_S += \
|
||||
$(subst $(TOP)/,,$(wildcard $(TOP)/$(FREERTOS_PORT)/*.s))
|
||||
$(subst $(TOP)/,,$(wildcard $(TOP)/$(FREERTOS_PORTABLE_SRC)/*.s))
|
||||
|
||||
# include heap manage if configSUPPORT_DYNAMIC_ALLOCATION = 1
|
||||
# SRC_C += $(FREERTOS_SRC)/portable/MemMang/heap_1.c
|
||||
|
@ -3,21 +3,21 @@ DEPS_SUBMODULES += lib/FreeRTOS-Kernel
|
||||
include ../../make.mk
|
||||
|
||||
FREERTOS_SRC = lib/FreeRTOS-Kernel
|
||||
FREERTOS_PORT_PATH= $(FREERTOS_SRC)/portable/$(if $(USE_IAR),IAR,GCC)
|
||||
FREERTOS_PORTABLE_PATH= $(FREERTOS_SRC)/portable/$(if $(USE_IAR),IAR,GCC)
|
||||
|
||||
INC += \
|
||||
src \
|
||||
src/FreeRTOSConfig \
|
||||
$(TOP)/hw \
|
||||
$(TOP)/$(FREERTOS_SRC)/include \
|
||||
$(TOP)/$(FREERTOS_PORT)
|
||||
$(TOP)/$(FREERTOS_PORTABLE_SRC)
|
||||
|
||||
# Example source
|
||||
EXAMPLE_SOURCE = \
|
||||
src/freertos_hook.c \
|
||||
src/main.c \
|
||||
src/usb_descriptors.c
|
||||
|
||||
|
||||
SRC_C += $(addprefix $(CURRENT_PATH)/, $(EXAMPLE_SOURCE))
|
||||
|
||||
# FreeRTOS source, all files in port folder
|
||||
@ -26,10 +26,10 @@ SRC_C += \
|
||||
$(FREERTOS_SRC)/queue.c \
|
||||
$(FREERTOS_SRC)/tasks.c \
|
||||
$(FREERTOS_SRC)/timers.c \
|
||||
$(subst $(TOP)/,,$(wildcard $(TOP)/$(FREERTOS_PORT)/*.c))
|
||||
$(subst $(TOP)/,,$(wildcard $(TOP)/$(FREERTOS_PORTABLE_SRC)/*.c))
|
||||
|
||||
SRC_S += \
|
||||
$(subst $(TOP)/,,$(wildcard $(TOP)/$(FREERTOS_PORT)/*.s))
|
||||
$(subst $(TOP)/,,$(wildcard $(TOP)/$(FREERTOS_PORTABLE_SRC)/*.s))
|
||||
|
||||
# include heap manage if configSUPPORT_DYNAMIC_ALLOCATION = 1
|
||||
# SRC_C += $(FREERTOS_SRC)/portable/MemMang/heap_1.c
|
||||
|
@ -34,23 +34,23 @@ SRC_C += \
|
||||
$(CH32V307_SDK_SRC)/Peripheral/src/ch32v30x_gpio.c \
|
||||
$(CH32V307_SDK_SRC)/Peripheral/src/ch32v30x_misc.c \
|
||||
$(CH32V307_SDK_SRC)/Peripheral/src/ch32v30x_rcc.c \
|
||||
$(CH32V307_SDK_SRC)/Peripheral/src/ch32v30x_usart.c
|
||||
|
||||
$(CH32V307_SDK_SRC)/Peripheral/src/ch32v30x_usart.c
|
||||
|
||||
SRC_S += \
|
||||
$(CH32V307_SDK_SRC)/Startup/startup_ch32v30x_D8C.S
|
||||
$(CH32V307_SDK_SRC)/Startup/startup_ch32v30x_D8C.S
|
||||
|
||||
INC += \
|
||||
$(TOP)/$(BOARD_PATH) \
|
||||
$(TOP)/$(CH32V307_SDK_SRC)/Peripheral/inc
|
||||
|
||||
# For freeRTOS port source
|
||||
FREERTOS_PORT = RISC-V
|
||||
FREERTOS_PORTABLE_SRC = $(FREERTOS_PORTABLE_PATH)/RISC-V
|
||||
|
||||
# wch-link is not supported yet in official openOCD yet. We need to either use
|
||||
# 1. download openocd as part of mounriver studio http://www.mounriver.com/download or
|
||||
# 2. compiled from modified source https://github.com/kprasadvnsi/riscv-openocd-wch
|
||||
#
|
||||
# Note: For Linux, somehow openocd in mounriver studio does not seem to have wch-link enable,
|
||||
# Note: For Linux, somehow openocd in mounriver studio does not seem to have wch-link enable,
|
||||
# therefore we need to compile it from source as follows:
|
||||
# git clone https://github.com/kprasadvnsi/riscv-openocd-wch
|
||||
# cd riscv-openocd-wch
|
||||
|
@ -52,7 +52,7 @@ INC += \
|
||||
$(TOP)/hw/mcu/microchip/same51/CMSIS/Include
|
||||
|
||||
# For freeRTOS port source
|
||||
FREERTOS_PORT = $(FREERTOS_PORT_PATH)/ARM_CM4F
|
||||
FREERTOS_PORTABLE_SRC = $(FREERTOS_PORTABLE_PATH)/ARM_CM4F
|
||||
|
||||
# For flash-jlink target
|
||||
JLINK_DEVICE = ATSAME51J19
|
||||
|
@ -31,7 +31,7 @@ INC += \
|
||||
$(TOP)/$(MCU_FAMILY_DIR)/SDK_10.0.8.105/sdk/bsp/include
|
||||
|
||||
# For freeRTOS port source
|
||||
FREERTOS_PORT = $(FREERTOS_PORT_PATH)/ARM_CM33_NTZ/non_secure
|
||||
FREERTOS_PORTABLE_SRC = $(FREERTOS_PORTABLE_PATH)/ARM_CM33_NTZ/non_secure
|
||||
|
||||
# For flash-jlink target
|
||||
JLINK_DEVICE = DA14695
|
||||
@ -52,4 +52,3 @@ flash-dialog: $(BUILD)/$(PROJECT).bin
|
||||
@echo go >> $(BUILD)/$(BOARD).jlink
|
||||
@echo exit >> $(BUILD)/$(BOARD).jlink
|
||||
$(JLINKEXE) -device $(JLINK_DEVICE) -if $(JLINK_IF) -JTAGConf -1,-1 -speed auto -CommandFile $(BUILD)/$(BOARD).jlink
|
||||
|
||||
|
@ -31,7 +31,7 @@ INC += \
|
||||
$(TOP)/$(MCU_FAMILY_DIR)/SDK_10.0.8.105/sdk/bsp/include
|
||||
|
||||
# For freeRTOS port source
|
||||
FREERTOS_PORT = $(FREERTOS_PORT_PATH)/ARM_CM33_NTZ/non_secure
|
||||
FREERTOS_PORTABLE_SRC = $(FREERTOS_PORTABLE_PATH)/ARM_CM33_NTZ/non_secure
|
||||
|
||||
# For flash-jlink target
|
||||
JLINK_DEVICE = DA14699
|
||||
@ -52,4 +52,3 @@ flash-dialog: $(BUILD)/$(PROJECT).bin
|
||||
@echo go >> $(BUILD)/$(BOARD).jlink
|
||||
@echo exit >> $(BUILD)/$(BOARD).jlink
|
||||
$(JLINKEXE) -device $(JLINK_DEVICE) -if $(JLINK_IF) -JTAGConf -1,-1 -speed auto -CommandFile $(BUILD)/$(BOARD).jlink
|
||||
|
||||
|
@ -37,7 +37,7 @@ INC += \
|
||||
$(TOP)/$(MCU_DIR)/inc
|
||||
|
||||
# For freeRTOS port source
|
||||
FREERTOS_PORT = $(FREERTOS_PORT_PATH)/ARM_CM4F
|
||||
FREERTOS_PORTABLE_SRC = $(FREERTOS_PORTABLE_PATH)/ARM_CM4F
|
||||
|
||||
# For flash-jlink target
|
||||
JLINK_DEVICE = LPC4088
|
||||
|
@ -39,7 +39,7 @@ INC += \
|
||||
$(TOP)/$(MCU_DIR)/inc/config_43xx
|
||||
|
||||
# For freeRTOS port source
|
||||
FREERTOS_PORT = $(FREERTOS_PORT_PATH)/ARM_CM4F
|
||||
FREERTOS_PORTABLE_SRC = $(FREERTOS_PORTABLE_PATH)/ARM_CM4F
|
||||
|
||||
# For flash-jlink target
|
||||
JLINK_DEVICE = LPC4357_M4
|
||||
|
@ -19,12 +19,12 @@ INC += \
|
||||
$(TOP)/$(FAMILY_PATH)/include
|
||||
|
||||
# For freeRTOS port source
|
||||
FREERTOS_PORT = $(FREERTOS_PORT_PATH)/RISC-V
|
||||
FREERTOS_PORTABLE_SRC = $(FREERTOS_PORTABLE_PATH)/RISC-V
|
||||
|
||||
# flash using dfu-util
|
||||
$(BUILD)/$(PROJECT).dfu: $(BUILD)/$(PROJECT).bin
|
||||
@echo "Create $@"
|
||||
python $(TOP)/hw/bsp/$(BOARD)/dfu.py -b $^ -D 0x1209:0x5bf0 $@
|
||||
|
||||
|
||||
flash: $(BUILD)/$(PROJECT).dfu
|
||||
dfu-util -D $^
|
||||
|
@ -39,7 +39,7 @@ INC += \
|
||||
SRC_S += $(MCU_DIR)/gcc/startup_K32L2B31A.S
|
||||
|
||||
# For freeRTOS port source
|
||||
FREERTOS_PORT = $(FREERTOS_PORT_PATH)/ARM_CM0
|
||||
FREERTOS_PORTABLE_SRC = $(FREERTOS_PORTABLE_PATH)/ARM_CM0
|
||||
|
||||
# For flash-jlink target
|
||||
JLINK_DEVICE = MKL25Z128xxx4
|
||||
|
@ -40,7 +40,7 @@ INC += \
|
||||
SRC_S += $(MCU_DIR)/gcc/startup_MKL25Z4.S
|
||||
|
||||
# For freeRTOS port source
|
||||
FREERTOS_PORT = $(FREERTOS_PORT_PATH)/ARM_CM0
|
||||
FREERTOS_PORTABLE_SRC = $(FREERTOS_PORTABLE_PATH)/ARM_CM0
|
||||
|
||||
# For flash-jlink target
|
||||
JLINK_DEVICE = MKL25Z128xxx4
|
||||
|
@ -44,7 +44,7 @@ SRC_C += \
|
||||
$(LIBC_STUBS)/isatty.c \
|
||||
$(LIBC_STUBS)/fstat.c \
|
||||
$(LIBC_STUBS)/lseek.c \
|
||||
$(LIBC_STUBS)/read.c
|
||||
$(LIBC_STUBS)/read.c
|
||||
|
||||
SRC_S += \
|
||||
$(STARTUP_ASM)/startup_gd32vf103.S \
|
||||
@ -57,7 +57,7 @@ INC += \
|
||||
$(TOP)/$(GD32VF103_SDK_SOC)/Common/Include/Usb
|
||||
|
||||
# For freeRTOS port source
|
||||
FREERTOS_PORT = $(FREERTOS_PORT_PATH)/RISC-V
|
||||
FREERTOS_PORTABLE_SRC = $(FREERTOS_PORTABLE_PATH)/RISC-V
|
||||
|
||||
# For flash-jlink target
|
||||
JLINK_IF = jtag
|
||||
|
@ -30,7 +30,7 @@ MCU_DIR = $(SDK_DIR)/devices/$(MCU_VARIANT)
|
||||
# All source paths should be relative to the top level.
|
||||
LD_FILE ?= $(MCU_DIR)/gcc/$(MCU_VARIANT)xxxxx_flexspi_nor.ld
|
||||
|
||||
# TODO for net_lwip_webserver example, but may not needed !!
|
||||
# TODO for net_lwip_webserver example, but may not needed !!
|
||||
LDFLAGS += \
|
||||
-Wl,--defsym,__stack_size__=0x800 \
|
||||
|
||||
@ -59,7 +59,7 @@ INC += \
|
||||
SRC_S += $(MCU_DIR)/gcc/startup_$(MCU_VARIANT).S
|
||||
|
||||
# For freeRTOS port source
|
||||
FREERTOS_PORT = $(FREERTOS_PORT_PATH)/ARM_CM7/r0p1
|
||||
FREERTOS_PORTABLE_SRC = $(FREERTOS_PORTABLE_PATH)/ARM_CM7/r0p1
|
||||
|
||||
# UF2 generation, iMXRT need to strip to text only before conversion
|
||||
APPLICATION_ADDR = 0x6000C000
|
||||
|
@ -35,12 +35,12 @@ INC += \
|
||||
$(TOP)/$(SDK_DIR)/drivers/port \
|
||||
$(TOP)/$(SDK_DIR)/drivers/lpuart \
|
||||
$(TOP)/$(MCU_DIR) \
|
||||
$(TOP)/$(MCU_DIR)/drivers
|
||||
$(TOP)/$(MCU_DIR)/drivers
|
||||
|
||||
SRC_S += $(MCU_DIR)/gcc/startup_K32L2B31A.S
|
||||
|
||||
# For freeRTOS port source
|
||||
FREERTOS_PORT = $(FREERTOS_PORT_PATH)/ARM_CM0
|
||||
FREERTOS_PORTABLE_SRC = $(FREERTOS_PORTABLE_PATH)/ARM_CM0
|
||||
|
||||
# For flash-jlink target
|
||||
JLINK_DEVICE = MKL25Z128xxx4
|
||||
|
@ -12,7 +12,7 @@ CFLAGS += \
|
||||
-D__USE_LPCOPEN \
|
||||
-DCFG_EXAMPLE_MSC_READONLY \
|
||||
-DCFG_TUSB_MCU=OPT_MCU_LPC15XX \
|
||||
-DCFG_TUSB_MEM_ALIGN='__attribute__((aligned(64)))'
|
||||
-DCFG_TUSB_MEM_ALIGN='__attribute__((aligned(64)))'
|
||||
|
||||
# mcu driver cause following warnings
|
||||
CFLAGS += -Wno-error=strict-prototypes -Wno-error=unused-parameter -Wno-error=unused-variable -Wno-error=cast-qual
|
||||
@ -36,4 +36,4 @@ INC += \
|
||||
$(TOP)/$(MCU_DIR)/inc
|
||||
|
||||
# For freeRTOS port source
|
||||
FREERTOS_PORT = $(FREERTOS_PORT_PATH)/ARM_CM3
|
||||
FREERTOS_PORTABLE_SRC = $(FREERTOS_PORTABLE_PATH)/ARM_CM3
|
||||
|
@ -34,4 +34,4 @@ INC += \
|
||||
$(TOP)/$(MCU_DIR)/inc/config_18xx
|
||||
|
||||
# For freeRTOS port source
|
||||
FREERTOS_PORT = $(FREERTOS_PORT_PATH)/ARM_CM3
|
||||
FREERTOS_PORTABLE_SRC = $(FREERTOS_PORTABLE_PATH)/ARM_CM3
|
||||
|
@ -11,7 +11,7 @@ CFLAGS += \
|
||||
-mfloat-abi=hard \
|
||||
-mfpu=fpv4-sp-d16 \
|
||||
-DCFG_TUSB_MCU=OPT_MCU_LPC54XXX \
|
||||
-DCFG_TUSB_MEM_ALIGN='__attribute__((aligned(64)))'
|
||||
-DCFG_TUSB_MEM_ALIGN='__attribute__((aligned(64)))'
|
||||
|
||||
ifeq ($(PORT), 1)
|
||||
$(info "PORT1 High Speed")
|
||||
@ -51,4 +51,4 @@ INC += \
|
||||
SRC_S += $(MCU_DIR)/gcc/startup_$(MCU_CORE).S
|
||||
|
||||
# For freeRTOS port source
|
||||
FREERTOS_PORT = $(FREERTOS_PORT_PATH)/ARM_CM4F
|
||||
FREERTOS_PORTABLE_SRC = $(FREERTOS_PORTABLE_PATH)/ARM_CM4F
|
||||
|
@ -65,4 +65,4 @@ SRC_S += $(MCU_DIR)/gcc/startup_$(MCU_CORE).S
|
||||
LIBS += $(TOP)/$(MCU_DIR)/gcc/libpower_hardabi.a
|
||||
|
||||
# For freeRTOS port source
|
||||
FREERTOS_PORT = $(FREERTOS_PORT_PATH)/ARM_CM33_NTZ/non_secure
|
||||
FREERTOS_PORTABLE_SRC = $(FREERTOS_PORTABLE_PATH)/ARM_CM33_NTZ/non_secure
|
||||
|
@ -12,7 +12,7 @@ CFLAGS += \
|
||||
-DCFG_EXAMPLE_VIDEO_READONLY \
|
||||
-DCFG_TUSB_MCU=OPT_MCU_LPC11UXX \
|
||||
-DCFG_TUSB_MEM_SECTION='__attribute__((section(".data.$$RAM2")))' \
|
||||
-DCFG_TUSB_MEM_ALIGN='__attribute__((aligned(64)))'
|
||||
-DCFG_TUSB_MEM_ALIGN='__attribute__((aligned(64)))'
|
||||
|
||||
# mcu driver cause following warnings
|
||||
CFLAGS += -Wno-error=strict-prototypes -Wno-error=unused-parameter -Wno-error=redundant-decls
|
||||
@ -36,11 +36,11 @@ INC += \
|
||||
$(TOP)/$(MCU_DIR)/inc
|
||||
|
||||
# For freeRTOS port source
|
||||
FREERTOS_PORT = $(FREERTOS_PORT_PATH)/ARM_CM0
|
||||
FREERTOS_PORTABLE_SRC = $(FREERTOS_PORTABLE_PATH)/ARM_CM0
|
||||
|
||||
# For flash-jlink target
|
||||
JLINK_DEVICE = LPC11U37/401
|
||||
|
||||
# flash using pyocd
|
||||
# flash using pyocd
|
||||
flash: $(BUILD)/$(PROJECT).hex
|
||||
pyocd flash -t lpc11u37 $<
|
||||
|
@ -11,7 +11,7 @@ CFLAGS += \
|
||||
-D__USE_LPCOPEN \
|
||||
-DCFG_TUSB_MCU=OPT_MCU_LPC11UXX \
|
||||
-DCFG_TUSB_MEM_SECTION='__attribute__((section(".data.$$RAM3")))' \
|
||||
-DCFG_TUSB_MEM_ALIGN='__attribute__((aligned(64)))'
|
||||
-DCFG_TUSB_MEM_ALIGN='__attribute__((aligned(64)))'
|
||||
|
||||
MCU_DIR = hw/mcu/nxp/lpcopen/lpc11u6x/lpc_chip_11u6x
|
||||
|
||||
@ -32,11 +32,11 @@ INC += \
|
||||
$(TOP)/$(MCU_DIR)/inc
|
||||
|
||||
# For freeRTOS port source
|
||||
FREERTOS_PORT = $(FREERTOS_PORT_PATH)/ARM_CM0
|
||||
FREERTOS_PORTABLE_SRC = $(FREERTOS_PORTABLE_PATH)/ARM_CM0
|
||||
|
||||
# For flash-jlink target
|
||||
JLINK_DEVICE = LPC11U68
|
||||
|
||||
# flash using pyocd
|
||||
# flash using pyocd
|
||||
flash: $(BUILD)/$(PROJECT).hex
|
||||
pyocd flash -t lpc11u68 $<
|
||||
|
@ -12,7 +12,7 @@ CFLAGS += \
|
||||
-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)))'
|
||||
-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
|
||||
@ -36,7 +36,7 @@ INC += \
|
||||
$(TOP)/$(MCU_DIR)/inc
|
||||
|
||||
# For freeRTOS port source
|
||||
FREERTOS_PORT = $(FREERTOS_PORT_PATH)/ARM_CM3
|
||||
FREERTOS_PORTABLE_SRC = $(FREERTOS_PORTABLE_PATH)/ARM_CM3
|
||||
|
||||
# For flash-jlink target
|
||||
JLINK_DEVICE = LPC1347
|
||||
|
@ -34,7 +34,7 @@ INC += \
|
||||
$(TOP)/$(MCU_DIR)/inc
|
||||
|
||||
# For freeRTOS port source
|
||||
FREERTOS_PORT = $(FREERTOS_PORT_PATH)/ARM_CM3
|
||||
FREERTOS_PORTABLE_SRC = $(FREERTOS_PORTABLE_PATH)/ARM_CM3
|
||||
|
||||
# For flash-jlink target
|
||||
JLINK_DEVICE = LPC1769
|
||||
|
@ -9,7 +9,7 @@ CFLAGS += \
|
||||
-DCPU_LPC51U68JBD64 \
|
||||
-DCFG_TUSB_MCU=OPT_MCU_LPC51UXX \
|
||||
-DCFG_TUSB_MEM_SECTION='__attribute__((section(".data")))' \
|
||||
-DCFG_TUSB_MEM_ALIGN='__attribute__((aligned(64)))'
|
||||
-DCFG_TUSB_MEM_ALIGN='__attribute__((aligned(64)))'
|
||||
|
||||
# mcu driver cause following warnings
|
||||
CFLAGS += -Wno-error=unused-parameter
|
||||
@ -36,14 +36,14 @@ INC += \
|
||||
$(TOP)/$(SDK_DIR)/drivers/common \
|
||||
$(TOP)/$(SDK_DIR)/drivers/flexcomm \
|
||||
$(TOP)/$(SDK_DIR)/drivers/lpc_iocon \
|
||||
$(TOP)/$(SDK_DIR)/drivers/lpc_gpio
|
||||
$(TOP)/$(SDK_DIR)/drivers/lpc_gpio
|
||||
|
||||
SRC_S += $(MCU_DIR)/gcc/startup_LPC51U68.S
|
||||
|
||||
LIBS += $(TOP)/$(MCU_DIR)/gcc/libpower.a
|
||||
|
||||
# For freeRTOS port source
|
||||
FREERTOS_PORT = $(FREERTOS_PORT_PATH)/ARM_CM0
|
||||
FREERTOS_PORTABLE_SRC = $(FREERTOS_PORTABLE_PATH)/ARM_CM0
|
||||
|
||||
JLINK_DEVICE = LPC51U68
|
||||
PYOCD_TARGET = LPC51U68
|
||||
|
@ -34,12 +34,11 @@ INC += \
|
||||
$(TOP)/$(MCU_DIR)/inc
|
||||
|
||||
# For freeRTOS port source
|
||||
FREERTOS_PORT = $(FREERTOS_PORT_PATH)/ARM_CM3
|
||||
FREERTOS_PORTABLE_SRC = $(FREERTOS_PORTABLE_PATH)/ARM_CM3
|
||||
|
||||
# For flash-jlink target
|
||||
JLINK_DEVICE = LPC1768
|
||||
|
||||
# flash using pyocd
|
||||
# flash using pyocd
|
||||
flash: $(BUILD)/$(PROJECT).hex
|
||||
pyocd flash -t lpc1768 $<
|
||||
|
||||
|
@ -11,7 +11,7 @@ CFLAGS += \
|
||||
-mcpu=cortex-m3 \
|
||||
-mfloat-abi=soft \
|
||||
-nostdlib -nostartfiles \
|
||||
-DCFG_TUSB_MCU=OPT_MCU_MM32F327X
|
||||
-DCFG_TUSB_MCU=OPT_MCU_MM32F327X
|
||||
|
||||
# suppress warning caused by vendor mcu driver
|
||||
CFLAGS += -Wno-error=unused-parameter -Wno-error=maybe-uninitialized -Wno-error=cast-qual
|
||||
@ -22,7 +22,7 @@ SRC_C += \
|
||||
$(SDK_DIR)/mm32f327x/MM32F327x/HAL_Lib/Src/hal_gpio.c \
|
||||
$(SDK_DIR)/mm32f327x/MM32F327x/HAL_Lib/Src/hal_rcc.c \
|
||||
$(SDK_DIR)/mm32f327x/MM32F327x/HAL_Lib/Src/hal_uart.c \
|
||||
|
||||
|
||||
INC += \
|
||||
$(TOP)/$(BOARD_PATH) \
|
||||
$(TOP)/lib/CMSIS_5/CMSIS/Core/Include \
|
||||
@ -30,7 +30,7 @@ INC += \
|
||||
$(TOP)/$(SDK_DIR)/mm32f327x/MM32F327x/HAL_Lib/Inc
|
||||
|
||||
# For freeRTOS port source
|
||||
FREERTOS_PORT = $(FREERTOS_PORT_PATH)/ARM_CM3
|
||||
FREERTOS_PORTABLE_SRC = $(FREERTOS_PORTABLE_PATH)/ARM_CM3
|
||||
|
||||
# flash target using on-board
|
||||
flash: flash-jlink
|
||||
|
@ -34,7 +34,7 @@ INC += \
|
||||
SRC_S += $(MCU_DIR)/Source/startup_msp432e411y_gcc.S
|
||||
|
||||
# For freeRTOS port source
|
||||
FREERTOS_PORT = $(FREERTOS_PORT_PATH)/ARM_CM4F
|
||||
FREERTOS_PORTABLE_SRC = $(FREERTOS_PORTABLE_PATH)/ARM_CM4F
|
||||
|
||||
# For flash-jlink target
|
||||
JLINK_DEVICE = MSP432E401Y
|
||||
|
@ -37,11 +37,11 @@ INC += \
|
||||
$(TOP)/$(MCU_DIR)/inc/config_43xx
|
||||
|
||||
# For freeRTOS port source
|
||||
FREERTOS_PORT = $(FREERTOS_PORT_PATH)/ARM_CM4F
|
||||
FREERTOS_PORTABLE_SRC = $(FREERTOS_PORTABLE_PATH)/ARM_CM4F
|
||||
|
||||
# For flash-jlink target
|
||||
JLINK_DEVICE = LPC4330
|
||||
JLINK_IF = swd
|
||||
JLINK_IF = swd
|
||||
|
||||
# flash using jlink
|
||||
flash: flash-jlink
|
||||
|
@ -42,7 +42,7 @@ SRC_S += hw/mcu/nordic/nrfx/mdk/gcc_startup_$(MCU_VARIANT).S
|
||||
ASFLAGS += -D__HEAP_SIZE=0
|
||||
|
||||
# For freeRTOS port source
|
||||
FREERTOS_PORT = $(FREERTOS_PORT_PATH)/ARM_CM4F
|
||||
FREERTOS_PORTABLE_SRC = $(FREERTOS_PORTABLE_PATH)/ARM_CM4F
|
||||
|
||||
# For flash-jlink target
|
||||
JLINK_DEVICE = $(MCU_VARIANT)_xxaa
|
||||
|
@ -35,7 +35,7 @@ INC += \
|
||||
$(TOP)/hw/mcu/nuvoton/nuc121_125/CMSIS/Include
|
||||
|
||||
# For freeRTOS port source
|
||||
FREERTOS_PORT = $(FREERTOS_PORT_PATH)/ARM_CM0
|
||||
FREERTOS_PORTABLE_SRC = $(FREERTOS_PORTABLE_PATH)/ARM_CM0
|
||||
|
||||
# For flash-jlink target
|
||||
JLINK_DEVICE = NUC121SC2AE
|
||||
|
@ -31,7 +31,7 @@ INC += \
|
||||
$(TOP)/hw/mcu/nuvoton/nuc121_125/CMSIS/Include
|
||||
|
||||
# For freeRTOS port source
|
||||
FREERTOS_PORT = $(FREERTOS_PORT_PATH)/ARM_CM0
|
||||
FREERTOS_PORTABLE_SRC = $(FREERTOS_PORTABLE_PATH)/ARM_CM0
|
||||
|
||||
# For flash-jlink target
|
||||
JLINK_DEVICE = NUC125SC2AE
|
||||
|
@ -37,7 +37,7 @@ INC += \
|
||||
$(TOP)/hw/mcu/nuvoton/nuc126/CMSIS/Include
|
||||
|
||||
# For freeRTOS port source
|
||||
FREERTOS_PORT = $(FREERTOS_PORT_PATH)/ARM_CM0
|
||||
FREERTOS_PORTABLE_SRC = $(FREERTOS_PORTABLE_PATH)/ARM_CM0
|
||||
|
||||
# For flash-jlink target
|
||||
JLINK_DEVICE = NUC126VG4AE
|
||||
|
@ -30,7 +30,7 @@ INC += \
|
||||
$(TOP)/hw/mcu/nuvoton/nuc100_120/CMSIS/Include
|
||||
|
||||
# For freeRTOS port source
|
||||
FREERTOS_PORT = $(FREERTOS_PORT_PATH)/ARM_CM0
|
||||
FREERTOS_PORTABLE_SRC = $(FREERTOS_PORTABLE_PATH)/ARM_CM0
|
||||
|
||||
# For flash-jlink target
|
||||
JLINK_DEVICE = NUC120LE3
|
||||
|
@ -42,14 +42,14 @@ INC += \
|
||||
$(TOP)/hw/mcu/nuvoton/nuc505/CMSIS/Include
|
||||
|
||||
# For freeRTOS port source
|
||||
FREERTOS_PORT = $(FREERTOS_PORT_PATH)/ARM_CM4F
|
||||
FREERTOS_PORTABLE_SRC = $(FREERTOS_PORTABLE_PATH)/ARM_CM4F
|
||||
|
||||
# For flash-jlink target
|
||||
JLINK_DEVICE = NUC505YO13Y
|
||||
|
||||
# Note
|
||||
# To be able to program the SPI flash, it need to boot with ICP mode "1011".
|
||||
# However, in ICP mode, opencod cannot establish connection to the mcu.
|
||||
# To be able to program the SPI flash, it need to boot with ICP mode "1011".
|
||||
# However, in ICP mode, opencod cannot establish connection to the mcu.
|
||||
# Therefore, there is no easy command line flash for NUC505
|
||||
# It is probably better to just use Nuvoton NuMicro ICP programming on windows to program the board
|
||||
# - 1111 "SPI" (run from internal flash)
|
||||
|
@ -52,4 +52,4 @@ INC += \
|
||||
|
||||
# For freeRTOS port source
|
||||
# hack to use the port provided by renesas
|
||||
FREERTOS_PORT = hw/mcu/renesas/fsp/ra/fsp/src/rm_freertos_port
|
||||
FREERTOS_PORTABLE_SRC = hw/mcu/renesas/fsp/ra/fsp/src/rm_freertos_port
|
||||
|
@ -9,7 +9,7 @@ MCU_DIR = hw/mcu/renesas/rx/rx63n
|
||||
LD_FILE = $(BOARD_PATH)/r5f5631fd.ld
|
||||
|
||||
# For freeRTOS port source
|
||||
FREERTOS_PORT = $(FREERTOS_PORT_PATH)/RX600
|
||||
FREERTOS_PORTABLE_SRC = $(FREERTOS_PORTABLE_PATH)/RX600
|
||||
|
||||
# For flash-jlink target
|
||||
JLINK_DEVICE = R5F5631F
|
||||
|
@ -12,7 +12,7 @@ MCU_DIR = hw/mcu/renesas/rx/rx65n
|
||||
LD_FILE = $(BOARD_PATH)/r5f565ne.ld
|
||||
|
||||
# For freeRTOS port source
|
||||
FREERTOS_PORT = $(FREERTOS_PORT_PATH)/RX600
|
||||
FREERTOS_PORTABLE_SRC = $(FREERTOS_PORTABLE_PATH)/RX600
|
||||
|
||||
# For flash-jlink target
|
||||
JLINK_DEVICE = R5F565NE
|
||||
|
@ -37,4 +37,4 @@ INC += \
|
||||
$(TOP)/hw/mcu/microchip/samd11/CMSIS/Core/Include
|
||||
|
||||
# For freeRTOS port source
|
||||
FREERTOS_PORT = $(FREERTOS_PORT_PATH)/ARM_CM0
|
||||
FREERTOS_PORTABLE_SRC = $(FREERTOS_PORTABLE_PATH)/ARM_CM0
|
||||
|
@ -37,7 +37,7 @@ INC += \
|
||||
$(TOP)/hw/mcu/microchip/samd21/CMSIS/Include
|
||||
|
||||
# For freeRTOS port source
|
||||
FREERTOS_PORT = $(FREERTOS_PORT_PATH)/ARM_CM0
|
||||
FREERTOS_PORTABLE_SRC = $(FREERTOS_PORTABLE_PATH)/ARM_CM0
|
||||
|
||||
# flash using bossac at least version 1.8
|
||||
# can be found in arduino15/packages/arduino/tools/bossac/
|
||||
|
@ -38,7 +38,7 @@ INC += \
|
||||
$(TOP)/hw/mcu/microchip/samd51/CMSIS/Include
|
||||
|
||||
# For freeRTOS port source
|
||||
FREERTOS_PORT = $(FREERTOS_PORT_PATH)/ARM_CM4F
|
||||
FREERTOS_PORTABLE_SRC = $(FREERTOS_PORTABLE_PATH)/ARM_CM4F
|
||||
|
||||
# flash using bossac at least version 1.8
|
||||
# can be found in arduino15/packages/arduino/tools/bossac/
|
||||
|
@ -38,7 +38,7 @@ INC += \
|
||||
$(TOP)/hw/mcu/microchip/same54/CMSIS/Include
|
||||
|
||||
# For freeRTOS port source
|
||||
FREERTOS_PORT = $(FREERTOS_PORT_PATH)/ARM_CM4F
|
||||
FREERTOS_PORTABLE_SRC = $(FREERTOS_PORTABLE_PATH)/ARM_CM4F
|
||||
|
||||
# For flash-jlink target
|
||||
JLINK_DEVICE = ATSAME54P20
|
||||
|
@ -44,7 +44,7 @@ INC += \
|
||||
$(TOP)/$(ASF_DIR)/CMSIS/Core/Include
|
||||
|
||||
# For freeRTOS port source
|
||||
FREERTOS_PORT = $(FREERTOS_PORT_PATH)/ARM_CM7
|
||||
FREERTOS_PORTABLE_SRC = $(FREERTOS_PORTABLE_PATH)/ARM_CM7
|
||||
|
||||
# For flash-jlink target
|
||||
JLINK_DEVICE = SAME70N19B
|
||||
|
@ -44,7 +44,7 @@ INC += \
|
||||
$(TOP)/$(ASF_DIR)/CMSIS/Core/Include
|
||||
|
||||
# For freeRTOS port source
|
||||
FREERTOS_PORT = $(FREERTOS_PORT_PATH)/ARM_CM7
|
||||
FREERTOS_PORTABLE_SRC = $(FREERTOS_PORTABLE_PATH)/ARM_CM7
|
||||
|
||||
# For flash-jlink target
|
||||
JLINK_DEVICE = SAME70Q21B
|
||||
@ -53,4 +53,4 @@ JLINK_DEVICE = SAME70Q21B
|
||||
# Note: SAME70's GPNVM1 must be set to 1 to boot from flash with
|
||||
# edbg -t same70 -F w0,1,1
|
||||
flash: $(BUILD)/$(PROJECT).bin
|
||||
edbg --verbose -t same70 -pv -f $<
|
||||
edbg --verbose -t same70 -pv -f $<
|
||||
|
@ -42,11 +42,11 @@ INC += \
|
||||
$(TOP)/$(ASF_DIR)/CMSIS/Core/Include
|
||||
|
||||
# For freeRTOS port source
|
||||
FREERTOS_PORT = $(FREERTOS_PORT_PATH)/ARM_CM4F
|
||||
FREERTOS_PORTABLE_SRC = $(FREERTOS_PORTABLE_PATH)/ARM_CM4F
|
||||
|
||||
# For flash-jlink target
|
||||
JLINK_DEVICE = ATSAMG55J19
|
||||
|
||||
# flash using edbg from https://github.com/ataradov/edbg
|
||||
flash: $(BUILD)/$(PROJECT).bin
|
||||
edbg --verbose -t samg55 -pv -f $<
|
||||
edbg --verbose -t samg55 -pv -f $<
|
||||
|
@ -39,7 +39,7 @@ INC += \
|
||||
$(TOP)/lib/CMSIS_5/CMSIS/Core/Include
|
||||
|
||||
# For freeRTOS port source
|
||||
FREERTOS_PORT = $(FREERTOS_PORT_PATH)/ARM_CM0
|
||||
FREERTOS_PORTABLE_SRC = $(FREERTOS_PORTABLE_PATH)/ARM_CM0
|
||||
|
||||
# flash using bossac at least version 1.8
|
||||
# can be found in arduino15/packages/arduino/tools/bossac/
|
||||
|
@ -35,7 +35,7 @@ INC += \
|
||||
$(TOP)/hw/bsp/$(BOARD)
|
||||
|
||||
# For freeRTOS port source
|
||||
FREERTOS_PORT = $(FREERTOS_PORT_PATH)/ARM_CM4F
|
||||
FREERTOS_PORTABLE_SRC = $(FREERTOS_PORTABLE_PATH)/ARM_CM4F
|
||||
|
||||
# For flash-jlink target
|
||||
JLINK_DEVICE = EFM32GG12B810F1024
|
||||
|
@ -53,4 +53,4 @@ INC += \
|
||||
$(TOP)/$(ST_HAL_DRIVER)/Inc
|
||||
|
||||
# For freeRTOS port source
|
||||
FREERTOS_PORT = $(FREERTOS_PORT_PATH)/ARM_CM0
|
||||
FREERTOS_PORTABLE_SRC = $(FREERTOS_PORTABLE_PATH)/ARM_CM0
|
||||
|
@ -44,7 +44,7 @@ INC += \
|
||||
$(TOP)/$(ST_HAL_DRIVER)/Inc
|
||||
|
||||
# For freeRTOS port source
|
||||
FREERTOS_PORT = $(FREERTOS_PORT_PATH)/ARM_CM3
|
||||
FREERTOS_PORTABLE_SRC = $(FREERTOS_PORTABLE_PATH)/ARM_CM3
|
||||
|
||||
# For flash-jlink target
|
||||
JLINK_DEVICE = stm32f103c8
|
||||
|
@ -39,7 +39,7 @@ INC += \
|
||||
$(TOP)/hw/bsp/$(BOARD)
|
||||
|
||||
# For freeRTOS port source
|
||||
FREERTOS_PORT = $(FREERTOS_PORT_PATH)/ARM_CM3
|
||||
FREERTOS_PORTABLE_SRC = $(FREERTOS_PORTABLE_PATH)/ARM_CM3
|
||||
|
||||
# For flash-jlink target
|
||||
JLINK_DEVICE = stm32f207zg
|
||||
|
@ -40,7 +40,7 @@ INC += \
|
||||
$(TOP)/hw/bsp/$(BOARD)
|
||||
|
||||
# For freeRTOS port source
|
||||
FREERTOS_PORT = $(FREERTOS_PORT_PATH)/ARM_CM4F
|
||||
FREERTOS_PORTABLE_SRC = $(FREERTOS_PORTABLE_PATH)/ARM_CM4F
|
||||
|
||||
# For flash-jlink target
|
||||
JLINK_DEVICE = stm32f303vc
|
||||
|
@ -52,7 +52,7 @@ INC += \
|
||||
$(TOP)/$(ST_HAL_DRIVER)/Inc
|
||||
|
||||
# For freeRTOS port source
|
||||
FREERTOS_PORT = $(FREERTOS_PORT_PATH)/ARM_CM4F
|
||||
FREERTOS_PORTABLE_SRC = $(FREERTOS_PORTABLE_PATH)/ARM_CM4F
|
||||
|
||||
# flash target using on-board stlink
|
||||
flash: flash-stlink
|
||||
|
@ -66,4 +66,4 @@ INC += \
|
||||
$(TOP)/$(ST_HAL_DRIVER)/Inc
|
||||
|
||||
# For freeRTOS port source
|
||||
FREERTOS_PORT = $(FREERTOS_PORT_PATH)/ARM_CM7/r0p1
|
||||
FREERTOS_PORTABLE_SRC = $(FREERTOS_PORTABLE_PATH)/ARM_CM7/r0p1
|
||||
|
@ -12,7 +12,7 @@ include $(TOP)/$(BOARD_PATH)/board.mk
|
||||
# --------------
|
||||
CFLAGS += \
|
||||
-DCFG_TUSB_MCU=OPT_MCU_STM32G4
|
||||
|
||||
|
||||
# GCC Flags
|
||||
GCC_CFLAGS += \
|
||||
-flto \
|
||||
@ -53,7 +53,7 @@ INC += \
|
||||
$(TOP)/$(ST_HAL_DRIVER)/Inc
|
||||
|
||||
# For freeRTOS port source
|
||||
FREERTOS_PORT = $(FREERTOS_PORT_PATH)/ARM_CM4F
|
||||
FREERTOS_PORTABLE_SRC = $(FREERTOS_PORTABLE_PATH)/ARM_CM4F
|
||||
|
||||
# flash target using on-board stlink
|
||||
flash: flash-stlink
|
||||
|
@ -68,5 +68,4 @@ INC += \
|
||||
$(TOP)/$(ST_HAL_DRIVER)/Inc
|
||||
|
||||
# For freeRTOS port source
|
||||
FREERTOS_PORT = $(FREERTOS_PORT_PATH)/ARM_CM7/r0p1
|
||||
|
||||
FREERTOS_PORTABLE_SRC = $(FREERTOS_PORTABLE_PATH)/ARM_CM7/r0p1
|
||||
|
@ -37,4 +37,4 @@ INC += \
|
||||
$(TOP)/$(ST_HAL_DRIVER)/Inc
|
||||
|
||||
# For freeRTOS port source
|
||||
FREERTOS_PORT = ARM_CM0
|
||||
FREERTOS_PORTABLE_SRC = $(FREERTOS_PORTABLE_PATH)/ARM_CM0
|
||||
|
@ -41,12 +41,12 @@ INC += \
|
||||
$(TOP)/hw/bsp/$(BOARD)
|
||||
|
||||
# For freeRTOS port source
|
||||
FREERTOS_PORT = $(FREERTOS_PORT_PATH)/ARM_CM0
|
||||
FREERTOS_PORTABLE_SRC = $(FREERTOS_PORTABLE_PATH)/ARM_CM0
|
||||
|
||||
# For flash-jlink target
|
||||
JLINK_DEVICE = STM32L053R8
|
||||
|
||||
# Path to STM32 Cube Programmer CLI, should be added into system path
|
||||
# Path to STM32 Cube Programmer CLI, should be added into system path
|
||||
STM32Prog = STM32_Programmer_CLI
|
||||
|
||||
# flash target using on-board stlink
|
||||
|
@ -55,7 +55,7 @@ INC += \
|
||||
$(TOP)/$(BOARD_PATH)
|
||||
|
||||
# For freeRTOS port source
|
||||
FREERTOS_PORT = $(FREERTOS_PORT_PATH)/ARM_CM4F
|
||||
FREERTOS_PORTABLE_SRC = $(FREERTOS_PORTABLE_PATH)/ARM_CM4F
|
||||
|
||||
# flash target using on-board stlink
|
||||
flash: flash-stlink
|
||||
|
@ -16,7 +16,7 @@ CFLAGS += \
|
||||
-nostdlib -nostartfiles \
|
||||
-DCFG_TUSB_MCU=OPT_MCU_STM32U5
|
||||
|
||||
# suppress warning caused by vendor mcu driver
|
||||
# suppress warning caused by vendor mcu driver
|
||||
CFLAGS += -Wno-error=maybe-uninitialized -Wno-error=cast-align -Wno-error=undef -Wno-error=unused-parameter
|
||||
|
||||
#src/portable/st/synopsys/dcd_synopsys.c
|
||||
@ -39,7 +39,7 @@ INC += \
|
||||
$(TOP)/$(BOARD_PATH)
|
||||
|
||||
# For freeRTOS port source
|
||||
FREERTOS_PORT = ARM_CM33_NTZ/non_secure
|
||||
FREERTOS_PORTABLE_SRC = ARM_CM33_NTZ/non_secure
|
||||
|
||||
# flash target using on-board stlink
|
||||
flash: flash-stlink
|
||||
|
@ -38,7 +38,7 @@ INC += \
|
||||
$(TOP)/$(ST_HAL_DRIVER)/Inc
|
||||
|
||||
# For freeRTOS port source
|
||||
FREERTOS_PORT = $(FREERTOS_PORT_PATH)/ARM_CM4F
|
||||
FREERTOS_PORTABLE_SRC = $(FREERTOS_PORTABLE_PATH)/ARM_CM4F
|
||||
|
||||
# flash target using on-board stlink
|
||||
flash: flash-stlink
|
||||
|
@ -12,7 +12,7 @@ CFLAGS += \
|
||||
-DCFG_TUSB_MCU=OPT_MCU_TM4C123 \
|
||||
-uvectors \
|
||||
-DTM4C123GH6PM
|
||||
|
||||
|
||||
# mcu driver cause following warnings
|
||||
CFLAGS += -Wno-error=strict-prototypes -Wno-error=cast-qual
|
||||
|
||||
@ -33,4 +33,4 @@ SRC_C += \
|
||||
$(MCU_DIR)/Source/GCC/tm4c123_startup.c
|
||||
|
||||
# For freeRTOS port source
|
||||
FREERTOS_PORT = $(FREERTOS_PORT_PATH)/ARM_CM4F
|
||||
FREERTOS_PORTABLE_SRC = $(FREERTOS_PORTABLE_PATH)/ARM_CM4F
|
||||
|
@ -37,4 +37,4 @@ INC += \
|
||||
$(TOP)/$(MCU_DIR)/XMCLib/inc
|
||||
|
||||
# For freeRTOS port source
|
||||
FREERTOS_PORT = $(FREERTOS_PORT_PATH)/ARM_CM4F
|
||||
FREERTOS_PORTABLE_SRC = $(FREERTOS_PORTABLE_PATH)/ARM_CM4F
|
||||
|
Loading…
x
Reference in New Issue
Block a user