2017-02-16 10:51:04 +01:00
|
|
|
BOARD ?= samr21-xpro
|
2023-05-05 10:26:35 +02:00
|
|
|
include ../Makefile.periph_common
|
2014-08-22 00:42:04 +02:00
|
|
|
|
2014-10-16 19:24:02 +02:00
|
|
|
FEATURES_REQUIRED = periph_rtt
|
2021-03-03 17:08:30 +01:00
|
|
|
FEATURES_OPTIONAL += periph_rtt_set_counter
|
2021-08-19 18:39:36 +02:00
|
|
|
FEATURES_OPTIONAL += periph_rtc_mem
|
2014-08-22 00:42:04 +02:00
|
|
|
|
2020-02-28 17:19:38 +01:00
|
|
|
DISABLE_MODULE += periph_init_rtt
|
2014-08-22 00:42:04 +02:00
|
|
|
|
2021-09-17 10:24:08 +02:00
|
|
|
# avoid running Kconfig by default
|
|
|
|
SHOULD_RUN_KCONFIG ?=
|
|
|
|
|
2022-04-01 12:21:20 +02:00
|
|
|
# microbit qemu lacks rtt
|
|
|
|
TEST_ON_CI_BLACKLIST += microbit
|
|
|
|
|
2014-08-22 00:42:04 +02:00
|
|
|
include $(RIOTBASE)/Makefile.include
|
2020-04-20 16:19:03 +02:00
|
|
|
|
|
|
|
# Put board specific dependencies here
|
2021-06-11 18:00:16 +02:00
|
|
|
ifneq (,$(filter stm32 kinetis,$(CPU)))
|
2020-05-30 19:07:50 +02:00
|
|
|
ifneq (f1,$(CPU_FAM))
|
|
|
|
# all stm32% but stm32f1 RTT are based on a 16 bit LPTIM, if using the default
|
|
|
|
# 32768KHz configuration TICKS_TO_WAIT will overflow
|
|
|
|
RTT_FREQUENCY ?= 1024
|
|
|
|
CFLAGS += -DRTT_FREQUENCY=$(RTT_FREQUENCY)
|
|
|
|
endif
|
2020-04-20 16:19:03 +02:00
|
|
|
endif
|