2019-10-06 15:34:46 +02:00
|
|
|
include ../Makefile.tests_common
|
|
|
|
|
|
|
|
USEMODULE += xtimer
|
|
|
|
USEMODULE += progress_bar
|
|
|
|
|
2021-03-22 11:48:11 +01:00
|
|
|
CONFIG_PROGRESS_BAR_LENGTH ?= 50
|
|
|
|
CONFIG_PROGRESS_BAR_FULL_CHARACTER ?= "█"
|
|
|
|
CONFIG_PROGRESS_BAR_EMPTY_CHARACTER ?= " "
|
2019-10-06 15:34:46 +02:00
|
|
|
|
|
|
|
# Other nice progress bar characters:
|
2021-03-22 11:48:11 +01:00
|
|
|
#CONFIG_PROGRESS_BAR_FULL_CHARACTER ?= "◉"
|
|
|
|
#CONFIG_PROGRESS_BAR_EMPTY_CHARACTER ?= "◯"
|
|
|
|
#CONFIG_PROGRESS_BAR_FULL_CHARACTER ?= "▣"
|
|
|
|
#CONFIG_PROGRESS_BAR_EMPTY_CHARACTER ?= "▢"
|
2019-10-06 15:34:46 +02:00
|
|
|
|
2021-03-22 11:48:11 +01:00
|
|
|
CFLAGS += -DCONFIG_PROGRESS_BAR_FULL_CHARACTER=\"$(CONFIG_PROGRESS_BAR_FULL_CHARACTER)\"
|
|
|
|
CFLAGS += -DCONFIG_PROGRESS_BAR_EMPTY_CHARACTER=\"$(CONFIG_PROGRESS_BAR_EMPTY_CHARACTER)\"
|
|
|
|
CFLAGS += -DCONFIG_PROGRESS_BAR_LENGTH=$(CONFIG_PROGRESS_BAR_LENGTH)
|
2019-10-06 15:34:46 +02:00
|
|
|
|
|
|
|
include $(RIOTBASE)/Makefile.include
|
|
|
|
|
|
|
|
# Make custom progress bar characters available in Python test script via
|
|
|
|
# environment variables
|
2021-03-22 11:48:11 +01:00
|
|
|
export CONFIG_PROGRESS_BAR_FULL_CHARACTER
|
|
|
|
export CONFIG_PROGRESS_BAR_EMPTY_CHARACTER
|
|
|
|
export CONFIG_PROGRESS_BAR_LENGTH
|