From 8ed6f18ee88546a77338cb5e7ccc6ac3795d07b3 Mon Sep 17 00:00:00 2001 From: Alexandre Abadie Date: Sat, 30 May 2020 19:07:50 +0200 Subject: [PATCH] tests/periph_rtt: fix invalid RTT_FREQUENCY set for non stm32f1 --- tests/periph_rtt/Makefile | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/tests/periph_rtt/Makefile b/tests/periph_rtt/Makefile index 80c2d54209..08887559e5 100644 --- a/tests/periph_rtt/Makefile +++ b/tests/periph_rtt/Makefile @@ -8,9 +8,11 @@ DISABLE_MODULE += periph_init_rtt include $(RIOTBASE)/Makefile.include # Put board specific dependencies here -ifneq (,$(filter-out stm32f1,$(filter stm32%,$(CPU)))) - # 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) +ifeq (stm32,$(CPU)) + 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 endif