mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2024-12-29 04:50:03 +01:00
fc6dc25da4
- Better self-containment: read number of expected samples from output rather than the environment - Less reliance on `stdout` timing: Count samples in application and output it rather then counting flushed dots.
26 lines
567 B
Makefile
26 lines
567 B
Makefile
BOARD ?= samr21-xpro
|
|
include ../Makefile.tests_common
|
|
|
|
USEMODULE += xtimer
|
|
|
|
FEATURES_REQUIRED += periph_rtt
|
|
DISABLE_MODULE += periph_init_rtt
|
|
|
|
RIOT_TERMINAL ?= socat
|
|
|
|
include $(RIOTBASE)/Makefile.include
|
|
|
|
# use highest possible RTT_FREQUENCY for boards that allow it
|
|
ifneq (,$(filter stm32 nrf5%,$(CPU)))
|
|
RTT_FREQUENCY ?= RTT_MAX_FREQUENCY
|
|
CFLAGS += -DRTT_FREQUENCY=$(RTT_FREQUENCY)
|
|
endif
|
|
|
|
# kinetis rtt runs at 1Hz, reduce samples to speed up the test
|
|
ifneq (,$(filter kinetis,$(CPU)))
|
|
SAMPLES ?= 64
|
|
else
|
|
SAMPLES ?= 1024
|
|
endif
|
|
CFLAGS += -DSAMPLES=$(SAMPLES)
|