1
0
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:
Jose Alamos 2021-07-02 14:50:59 +02:00
parent c5a1012695
commit 94d46e756e
No known key found for this signature in database
GPG Key ID: F483EB800EF89DD9
2 changed files with 1 additions and 5 deletions

View File

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

View File

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