2015-09-04 14:38:37 +02:00
|
|
|
include ../Makefile.tests_common
|
|
|
|
|
|
|
|
FEATURES_REQUIRED = periph_timer
|
|
|
|
|
2019-10-18 13:56:53 +02:00
|
|
|
BOARDS_TIMER_25kHz := \
|
|
|
|
arduino-duemilanove \
|
|
|
|
arduino-leonardo \
|
|
|
|
arduino-mega2560 \
|
|
|
|
arduino-uno \
|
2019-11-06 07:30:43 +01:00
|
|
|
atmega256rfr2-xpro \
|
2019-10-18 13:56:53 +02:00
|
|
|
atmega328p \
|
|
|
|
waspmote-pro \
|
|
|
|
#
|
|
|
|
|
|
|
|
BOARDS_TIMER_32kHz := \
|
|
|
|
hifive1 \
|
|
|
|
hifive1b \
|
|
|
|
%-kw41z \
|
2019-06-29 11:44:30 +02:00
|
|
|
openlabs-kw41z-mini \
|
2019-11-14 09:25:19 +01:00
|
|
|
frdm-k64f \
|
|
|
|
frdm-k22f \
|
2019-10-18 13:56:53 +02:00
|
|
|
#
|
|
|
|
|
2020-03-20 15:45:31 +01:00
|
|
|
BOARDS_TIMER_CLOCK_CORECLOCK := \
|
2020-03-19 16:17:49 +01:00
|
|
|
cc2538dk \
|
|
|
|
openmote-b \
|
|
|
|
openmote-cc2538 \
|
|
|
|
remote-reva \
|
|
|
|
remote-revb \
|
|
|
|
#
|
|
|
|
|
2019-10-18 13:56:53 +02:00
|
|
|
ifneq (,$(filter $(BOARDS_TIMER_25kHz),$(BOARD)))
|
2018-11-29 16:25:06 +01:00
|
|
|
TIMER_SPEED ?= 250000
|
2019-10-18 13:56:53 +02:00
|
|
|
else ifneq (,$(filter $(BOARDS_TIMER_32kHz),$(BOARD)))
|
2019-02-21 11:01:29 +01:00
|
|
|
TIMER_SPEED ?= 32768
|
2020-03-20 15:45:31 +01:00
|
|
|
else ifneq (,$(filter $(BOARDS_TIMER_CLOCK_CORECLOCK),$(BOARD)))
|
|
|
|
TIMER_SPEED ?= CLOCK_CORECLOCK
|
2018-11-29 16:25:06 +01:00
|
|
|
endif
|
|
|
|
|
|
|
|
TIMER_SPEED ?= 1000000
|
|
|
|
|
|
|
|
CFLAGS += -DTIMER_SPEED=$(TIMER_SPEED)
|
2015-09-04 14:38:37 +02:00
|
|
|
include $(RIOTBASE)/Makefile.include
|