Merge pull request #15098 from benpicco/cpu/fe310_rtc_fix

cpu/fe310: run RTT at 1 Hz if RTC is selected
This commit is contained in:
Alexandre Abadie 2020-09-28 09:16:42 +02:00 committed by GitHub
commit 9b08cdca3d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -173,8 +173,12 @@ 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
/** @} */