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:
commit
9b08cdca3d
@ -173,8 +173,12 @@ typedef struct {
|
|||||||
#define RTT_MIN_FREQUENCY (1U) /* in Hz */
|
#define RTT_MIN_FREQUENCY (1U) /* in Hz */
|
||||||
|
|
||||||
#ifndef RTT_FREQUENCY
|
#ifndef RTT_FREQUENCY
|
||||||
|
#ifdef MODULE_PERIPH_RTC
|
||||||
|
#define RTT_FREQUENCY (RTT_MIN_FREQUENCY) /* in Hz */
|
||||||
|
#else
|
||||||
#define RTT_FREQUENCY (RTT_MAX_FREQUENCY) /* in Hz */
|
#define RTT_FREQUENCY (RTT_MAX_FREQUENCY) /* in Hz */
|
||||||
#endif
|
#endif
|
||||||
|
#endif
|
||||||
|
|
||||||
|
|
||||||
/** @} */
|
/** @} */
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user