2023-05-05 10:26:35 +02:00
|
|
|
include ../Makefile.periph_common
|
2015-09-04 14:38:37 +02:00
|
|
|
|
|
|
|
FEATURES_REQUIRED = periph_timer
|
2021-04-19 21:44:16 +02:00
|
|
|
FEATURES_OPTIONAL = periph_timer_query_freqs
|
2015-09-04 14:38:37 +02:00
|
|
|
|
2021-02-27 23:53:49 +01:00
|
|
|
BOARDS_TIMER_500kHz := \
|
2021-01-12 00:08:02 +01:00
|
|
|
atxmega-a1-xplained \
|
2021-02-27 23:53:49 +01:00
|
|
|
atxmega-a1u-xpro \
|
2021-01-12 00:08:35 +01:00
|
|
|
atxmega-a3bu-xplained \
|
2021-02-27 23:53:49 +01:00
|
|
|
#
|
|
|
|
|
2020-08-20 14:15:45 +02:00
|
|
|
BOARDS_TIMER_250kHz := \
|
2019-10-18 13:56:53 +02:00
|
|
|
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 \
|
2021-01-02 02:55:39 +01:00
|
|
|
atmega328p-xplained-mini \
|
2019-10-18 13:56:53 +02:00
|
|
|
#
|
|
|
|
|
|
|
|
BOARDS_TIMER_32kHz := \
|
2020-11-21 00:56:33 +01:00
|
|
|
e180-zg120b-tb \
|
2019-10-18 13:56:53 +02:00
|
|
|
hifive1 \
|
|
|
|
hifive1b \
|
2020-11-10 23:43:14 +01:00
|
|
|
ikea-tradfri \
|
2019-10-18 13:56:53 +02:00
|
|
|
%-kw41z \
|
2019-06-29 11:44:30 +02:00
|
|
|
openlabs-kw41z-mini \
|
2019-11-14 09:25:19 +01:00
|
|
|
frdm-k64f \
|
|
|
|
frdm-k22f \
|
2020-11-10 23:05:57 +01:00
|
|
|
slstk3400a \
|
2020-08-18 15:57:00 +02:00
|
|
|
slstk3401a \
|
|
|
|
slstk3402a \
|
|
|
|
sltb001a \
|
2020-11-10 23:43:14 +01:00
|
|
|
slwstk6000b-% \
|
2020-11-10 23:01:39 +01:00
|
|
|
slwstk6220a \
|
2020-08-18 15:57:00 +02:00
|
|
|
stk3600 \
|
|
|
|
stk3700 \
|
2019-10-18 13:56:53 +02:00
|
|
|
#
|
|
|
|
|
2021-12-05 11:55:35 +01:00
|
|
|
BOARDS_TIMER_SYSCLK := \
|
2020-03-19 16:17:49 +01:00
|
|
|
cc2538dk \
|
|
|
|
openmote-b \
|
|
|
|
openmote-cc2538 \
|
|
|
|
remote-reva \
|
|
|
|
remote-revb \
|
2020-08-20 20:31:56 +02:00
|
|
|
waspmote-pro \
|
2020-03-19 16:17:49 +01:00
|
|
|
#
|
|
|
|
|
2021-02-27 23:53:49 +01:00
|
|
|
ifneq (,$(filter $(BOARDS_TIMER_500kHz),$(BOARD)))
|
|
|
|
TIMER_SPEED ?= 500000
|
|
|
|
else ifneq (,$(filter $(BOARDS_TIMER_250kHz),$(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
|
2021-12-05 11:55:35 +01:00
|
|
|
else ifneq (,$(filter $(BOARDS_TIMER_SYSCLK),$(BOARD)))
|
|
|
|
TIMER_SPEED ?= coreclk\(\)
|
2018-11-29 16:25:06 +01:00
|
|
|
endif
|
|
|
|
|
|
|
|
TIMER_SPEED ?= 1000000
|
|
|
|
|
|
|
|
CFLAGS += -DTIMER_SPEED=$(TIMER_SPEED)
|
2022-05-27 14:16:54 +02:00
|
|
|
|
|
|
|
EXTERNAL_BOARD_DIRS += $(CURDIR)/../external_board_dirs/esp-ci-boards
|
|
|
|
|
2015-09-04 14:38:37 +02:00
|
|
|
include $(RIOTBASE)/Makefile.include
|