tests/periph_rtt: fix invalid RTT_FREQUENCY set for non stm32f1
This commit is contained in:
parent
5055a1ef30
commit
8ed6f18ee8
@ -8,9 +8,11 @@ DISABLE_MODULE += periph_init_rtt
|
|||||||
include $(RIOTBASE)/Makefile.include
|
include $(RIOTBASE)/Makefile.include
|
||||||
|
|
||||||
# Put board specific dependencies here
|
# Put board specific dependencies here
|
||||||
ifneq (,$(filter-out stm32f1,$(filter stm32%,$(CPU))))
|
ifeq (stm32,$(CPU))
|
||||||
# all stm32% but stm32f1 RTT are based on a 16 bit LPTIM, if using the default
|
ifneq (f1,$(CPU_FAM))
|
||||||
# 32768KHz configuration TICKS_TO_WAIT will overflow
|
# all stm32% but stm32f1 RTT are based on a 16 bit LPTIM, if using the default
|
||||||
RTT_FREQUENCY ?= 1024
|
# 32768KHz configuration TICKS_TO_WAIT will overflow
|
||||||
CFLAGS += -DRTT_FREQUENCY=$(RTT_FREQUENCY)
|
RTT_FREQUENCY ?= 1024
|
||||||
|
CFLAGS += -DRTT_FREQUENCY=$(RTT_FREQUENCY)
|
||||||
|
endif
|
||||||
endif
|
endif
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user