2019-05-01 14:30:48 +07:00
|
|
|
include ../../../tools/top.mk
|
|
|
|
include ../../make.mk
|
|
|
|
|
2020-03-10 15:34:05 +07:00
|
|
|
FREERTOS_SRC = lib/FreeRTOS/FreeRTOS/Source
|
|
|
|
|
2019-05-01 14:30:48 +07:00
|
|
|
INC += \
|
|
|
|
src \
|
|
|
|
$(TOP)/hw \
|
2020-03-10 15:34:05 +07:00
|
|
|
$(TOP)/$(FREERTOS_SRC)/include \
|
|
|
|
$(TOP)/$(FREERTOS_SRC)/portable/GCC/$(FREERTOS_PORT)
|
2019-05-01 14:30:48 +07:00
|
|
|
|
|
|
|
# Example source
|
|
|
|
EXAMPLE_SOURCE += $(wildcard src/*.c)
|
|
|
|
SRC_C += $(addprefix $(CURRENT_PATH)/, $(EXAMPLE_SOURCE))
|
|
|
|
|
2020-03-11 00:47:13 +07:00
|
|
|
# FreeRTOS source, all files in port folder
|
2019-05-01 14:30:48 +07:00
|
|
|
SRC_C += \
|
2020-03-10 15:34:05 +07:00
|
|
|
$(FREERTOS_SRC)/list.c \
|
|
|
|
$(FREERTOS_SRC)/queue.c \
|
|
|
|
$(FREERTOS_SRC)/tasks.c \
|
|
|
|
$(FREERTOS_SRC)/timers.c \
|
2020-03-11 00:47:13 +07:00
|
|
|
$(subst ../../../,,$(wildcard ../../../$(FREERTOS_SRC)/portable/GCC/$(FREERTOS_PORT)/*.c))
|
2019-05-01 16:01:44 +07:00
|
|
|
|
|
|
|
# FreeRTOS (lto + Os) linker issue
|
|
|
|
LDFLAGS += -Wl,--undefined=vTaskSwitchContext
|
2019-05-01 14:30:48 +07:00
|
|
|
|
|
|
|
include ../../rules.mk
|