1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2025-01-18 12:52:44 +01:00
RIOT/tests/periph_timer/Makefile
Marian Buschsieweke 6441e3c178
tests: Updated BOARD_BLACKLIST
- Added atmega328p to BOARD_BLACKLIST where needed
- Adapted special timer frequency selection in tests/periph_timer to also
  select 25kHz for the atmega328p board
2019-10-21 12:54:46 +02:00

30 lines
558 B
Makefile

include ../Makefile.tests_common
FEATURES_REQUIRED = periph_timer
BOARDS_TIMER_25kHz := \
arduino-duemilanove \
arduino-leonardo \
arduino-mega2560 \
arduino-uno \
atmega328p \
waspmote-pro \
#
BOARDS_TIMER_32kHz := \
hifive1 \
hifive1b \
%-kw41z \
#
ifneq (,$(filter $(BOARDS_TIMER_25kHz),$(BOARD)))
TIMER_SPEED ?= 250000
else ifneq (,$(filter $(BOARDS_TIMER_32kHz),$(BOARD)))
TIMER_SPEED ?= 32768
endif
TIMER_SPEED ?= 1000000
CFLAGS += -DTIMER_SPEED=$(TIMER_SPEED)
include $(RIOTBASE)/Makefile.include