1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00
RIOT/tests/sys_sched_round_robin/Makefile
Francisco Molina a0d9694f00 tests/sys_sched_round_robin: increase round-robin work time
On slow CPUs the current 10ms time means printing might be interrupted.
2022-03-24 07:57:53 +01:00

21 lines
466 B
Makefile

include ../Makefile.tests_common
# Set to 1 to disable the round-robin scheduling module
NORR ?= 0
ifneq (1,$(NORR))
USEMODULE += sched_round_robin
endif
include $(RIOTBASE)/Makefile.include
# Increase time between round-robin calls so prints are not interrupted for
# slow CPU's
ifneq (,$(filter ztimer_usec,$(USEMODULE)))
CFLAGS += -DSCHED_RR_TIMEOUT=100*1000
else
ifneq (,$(filter ztimer_msec,$(USEMODULE)))
CFLAGS += -DSCHED_RR_TIMEOUT=100
endif
endif