mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2024-12-29 04:50:03 +01:00
3bc6494004
If the feature periph_timer_query_freqs is provided, use the corresponding function to iterate over all supported frequencies to increase test coverage.
67 lines
1.3 KiB
Makefile
67 lines
1.3 KiB
Makefile
include ../Makefile.periph_common
|
|
|
|
FEATURES_REQUIRED = periph_timer
|
|
FEATURES_OPTIONAL = periph_timer_query_freqs
|
|
|
|
BOARDS_TIMER_500kHz := \
|
|
atxmega-a1-xplained \
|
|
atxmega-a1u-xpro \
|
|
atxmega-a3bu-xplained \
|
|
#
|
|
|
|
BOARDS_TIMER_250kHz := \
|
|
arduino-duemilanove \
|
|
arduino-leonardo \
|
|
arduino-mega2560 \
|
|
arduino-uno \
|
|
atmega256rfr2-xpro \
|
|
atmega328p \
|
|
atmega328p-xplained-mini \
|
|
#
|
|
|
|
BOARDS_TIMER_32kHz := \
|
|
e180-zg120b-tb \
|
|
hifive1 \
|
|
hifive1b \
|
|
ikea-tradfri \
|
|
%-kw41z \
|
|
openlabs-kw41z-mini \
|
|
frdm-k64f \
|
|
frdm-k22f \
|
|
slstk3400a \
|
|
slstk3401a \
|
|
slstk3402a \
|
|
sltb001a \
|
|
slwstk6000b-% \
|
|
slwstk6220a \
|
|
stk3600 \
|
|
stk3700 \
|
|
#
|
|
|
|
BOARDS_TIMER_SYSCLK := \
|
|
cc2538dk \
|
|
openmote-b \
|
|
openmote-cc2538 \
|
|
remote-reva \
|
|
remote-revb \
|
|
waspmote-pro \
|
|
#
|
|
|
|
ifneq (,$(filter $(BOARDS_TIMER_500kHz),$(BOARD)))
|
|
TIMER_SPEED ?= 500000
|
|
else ifneq (,$(filter $(BOARDS_TIMER_250kHz),$(BOARD)))
|
|
TIMER_SPEED ?= 250000
|
|
else ifneq (,$(filter $(BOARDS_TIMER_32kHz),$(BOARD)))
|
|
TIMER_SPEED ?= 32768
|
|
else ifneq (,$(filter $(BOARDS_TIMER_SYSCLK),$(BOARD)))
|
|
TIMER_SPEED ?= coreclk\(\)
|
|
endif
|
|
|
|
TIMER_SPEED ?= 1000000
|
|
|
|
CFLAGS += -DTIMER_SPEED=$(TIMER_SPEED)
|
|
|
|
EXTERNAL_BOARD_DIRS += $(CURDIR)/../external_board_dirs/esp-ci-boards
|
|
|
|
include $(RIOTBASE)/Makefile.include
|