mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2024-12-29 04:50:03 +01:00
cpu/fe310: fix RTT frequency
This commit is contained in:
parent
c5a1012695
commit
94d46e756e
@ -167,12 +167,8 @@ typedef struct {
|
||||
#define RTT_MIN_FREQUENCY (1U) /* in Hz */
|
||||
|
||||
#ifndef RTT_FREQUENCY
|
||||
#ifdef MODULE_PERIPH_RTC
|
||||
#define RTT_FREQUENCY (RTT_MIN_FREQUENCY) /* in Hz */
|
||||
#else
|
||||
#define RTT_FREQUENCY (RTT_MAX_FREQUENCY) /* in Hz */
|
||||
#endif
|
||||
#endif
|
||||
|
||||
/**
|
||||
* @brief Initialization of the clock
|
||||
|
@ -8,7 +8,7 @@ endif
|
||||
# might not be the most optimized for conversion guarantees that ztimer_periph_rtt
|
||||
# will have a capable backend.
|
||||
ifneq (,$(filter ztimer_periph_rtt,$(USEMODULE)))
|
||||
ifneq (,$(filter stm32 nrf5% sam% kinetis efm32,$(CPU)))
|
||||
ifneq (,$(filter stm32 nrf5% sam% kinetis efm32 fe310,$(CPU)))
|
||||
RTT_FREQUENCY ?= RTT_MAX_FREQUENCY
|
||||
CFLAGS += -DRTT_FREQUENCY=$(RTT_FREQUENCY)
|
||||
endif
|
||||
|
Loading…
Reference in New Issue
Block a user