mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2024-12-29 04:50:03 +01:00
bf5cebb6b3
The waspmote-pro cannot run at 250 kHz, as no available divider can divide its core frequency down to that. Instead, the board can be tested at its core clock frequency.
49 lines
935 B
Makefile
49 lines
935 B
Makefile
include ../Makefile.tests_common
|
|
|
|
FEATURES_REQUIRED = periph_timer
|
|
|
|
BOARDS_TIMER_250kHz := \
|
|
arduino-duemilanove \
|
|
arduino-leonardo \
|
|
arduino-mega2560 \
|
|
arduino-uno \
|
|
atmega256rfr2-xpro \
|
|
atmega328p \
|
|
#
|
|
|
|
BOARDS_TIMER_32kHz := \
|
|
hifive1 \
|
|
hifive1b \
|
|
%-kw41z \
|
|
openlabs-kw41z-mini \
|
|
frdm-k64f \
|
|
frdm-k22f \
|
|
slstk3401a \
|
|
slstk3402a \
|
|
sltb001a \
|
|
stk3600 \
|
|
stk3700 \
|
|
#
|
|
|
|
BOARDS_TIMER_CLOCK_CORECLOCK := \
|
|
cc2538dk \
|
|
openmote-b \
|
|
openmote-cc2538 \
|
|
remote-reva \
|
|
remote-revb \
|
|
waspmote-pro \
|
|
#
|
|
|
|
ifneq (,$(filter $(BOARDS_TIMER_250kHz),$(BOARD)))
|
|
TIMER_SPEED ?= 250000
|
|
else ifneq (,$(filter $(BOARDS_TIMER_32kHz),$(BOARD)))
|
|
TIMER_SPEED ?= 32768
|
|
else ifneq (,$(filter $(BOARDS_TIMER_CLOCK_CORECLOCK),$(BOARD)))
|
|
TIMER_SPEED ?= CLOCK_CORECLOCK
|
|
endif
|
|
|
|
TIMER_SPEED ?= 1000000
|
|
|
|
CFLAGS += -DTIMER_SPEED=$(TIMER_SPEED)
|
|
include $(RIOTBASE)/Makefile.include
|