1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2025-01-18 12:52:44 +01:00

tests/periph_rtt: lower RTT_FREQUENCY for stm32 boards

All stm32% but stm32f1 RTT are based on a 16 bit LPTIM, if using
the default 32768KHz configuration TICKS_TO_WAIT will overflow
This commit is contained in:
Francisco Molina 2020-04-20 16:19:03 +02:00
parent b5bcf26e0f
commit c95d02dfd5
No known key found for this signature in database
GPG Key ID: 3E94EAC3DBDEEDA8

View File

@ -6,3 +6,11 @@ FEATURES_REQUIRED = periph_rtt
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)
endif