mirror of
https://github.com/hathach/tinyusb.git
synced 2025-04-24 18:02:40 +00:00
fix build with midi_test_freertos
This commit is contained in:
parent
34346d61f0
commit
c370c70bbe
@ -28,6 +28,6 @@ target_include_directories(${PROJECT} PUBLIC
|
|||||||
${CMAKE_CURRENT_SOURCE_DIR}/src
|
${CMAKE_CURRENT_SOURCE_DIR}/src
|
||||||
)
|
)
|
||||||
|
|
||||||
# Configure compilation flags and libraries for the example without RTOS.
|
# Configure compilation flags and libraries for the example with FreeRTOS.
|
||||||
# See the corresponding function in hw/bsp/FAMILY/family.cmake for details.
|
# See the corresponding function in hw/bsp/FAMILY/family.cmake for details.
|
||||||
family_configure_device_example(${PROJECT} freertos)
|
family_configure_device_example(${PROJECT} freertos)
|
||||||
|
@ -1,8 +1,14 @@
|
|||||||
include ../../build_system/make/make.mk
|
include ../../build_system/make/make.mk
|
||||||
|
|
||||||
|
FREERTOS_SRC = lib/FreeRTOS-Kernel
|
||||||
|
FREERTOS_PORTABLE_PATH = $(FREERTOS_SRC)/portable/$(if $(findstring iar,$(TOOLCHAIN)),IAR,GCC)
|
||||||
|
|
||||||
INC += \
|
INC += \
|
||||||
src \
|
src \
|
||||||
$(TOP)/hw \
|
$(TOP)/hw \
|
||||||
|
${TOP}/${FAMILY_PATH}/FreeRTOSConfig \
|
||||||
|
$(TOP)/$(FREERTOS_SRC)/include \
|
||||||
|
$(TOP)/$(FREERTOS_PORTABLE_SRC) \
|
||||||
|
|
||||||
# Example source
|
# Example source
|
||||||
EXAMPLE_SOURCE += \
|
EXAMPLE_SOURCE += \
|
||||||
@ -22,4 +28,13 @@ SRC_C += \
|
|||||||
SRC_S += \
|
SRC_S += \
|
||||||
$(subst $(TOP)/,,$(wildcard $(TOP)/$(FREERTOS_PORTABLE_SRC)/*.s))
|
$(subst $(TOP)/,,$(wildcard $(TOP)/$(FREERTOS_PORTABLE_SRC)/*.s))
|
||||||
|
|
||||||
|
# Suppress FreeRTOSConfig.h warnings
|
||||||
|
CFLAGS_GCC += -Wno-error=redundant-decls
|
||||||
|
|
||||||
|
# Suppress FreeRTOS source warnings
|
||||||
|
CFLAGS_GCC += -Wno-error=cast-qual
|
||||||
|
|
||||||
|
# FreeRTOS (lto + Os) linker issue
|
||||||
|
LDFLAGS_GCC += -Wl,--undefined=vTaskSwitchContext
|
||||||
|
|
||||||
include ../../build_system/make/rules.mk
|
include ../../build_system/make/rules.mk
|
||||||
|
@ -54,7 +54,7 @@
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifndef CFG_TUSB_OS
|
#ifndef CFG_TUSB_OS
|
||||||
#define CFG_TUSB_OS OPT_OS_NONE
|
#define CFG_TUSB_OS OPT_OS_FREERTOS
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifndef CFG_TUSB_DEBUG
|
#ifndef CFG_TUSB_DEBUG
|
||||||
|
Loading…
x
Reference in New Issue
Block a user