tests/periph_timer: Set freq for Arudino Leonardo

The Arduino Leonardo requires - like the other ATmega based Arduinos - a
different frequency than the default 1000000, as this frequency cannot be
achieved on a 16MHz ATmega with any available prescaler.
This commit is contained in:
Marian Buschsieweke 2019-05-24 09:49:25 +02:00
parent b63121c588
commit 112b88f7ee
No known key found for this signature in database
GPG Key ID: 61F64C6599B1539F

View File

@ -6,7 +6,7 @@ FEATURES_REQUIRED = periph_timer
TEST_ON_CI_WHITELIST += all TEST_ON_CI_WHITELIST += all
ifneq (,$(filter arduino-duemilanove arduino-mega2560 arduino-uno waspmote-pro,$(BOARD))) ifneq (,$(filter arduino-duemilanove arduino-leonardo arduino-mega2560 arduino-uno waspmote-pro,$(BOARD)))
TIMER_SPEED ?= 250000 TIMER_SPEED ?= 250000
else ifneq (,$(filter hifive1 %-kw41z,$(BOARD))) else ifneq (,$(filter hifive1 %-kw41z,$(BOARD)))
TIMER_SPEED ?= 32768 TIMER_SPEED ?= 32768