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

Merge pull request #14186 from aabadie/pr/tests/periph_rtt_makefile_fix

tests/periph_rtt: fix small issue with RTT_FREQUENCY for stm32f1
This commit is contained in:
Alexandre Abadie 2020-06-02 13:58:07 +02:00 committed by GitHub
commit 646e23b01d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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