1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2025-12-15 09:33:50 +01:00

Merge pull request #21743 from BOZHENG001/fix-rtt

nrf52/cfg_rtt_default: fix rtt min offset
This commit is contained in:
mguetschow 2025-09-30 20:16:13 +00:00 committed by GitHub
commit 99cd4617a5
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -32,6 +32,11 @@ extern "C" {
#define RTT_MAX_FREQUENCY (32768U) /* in Hz */
#define RTT_MIN_FREQUENCY (8U) /* in Hz */
#define RTT_CLOCK_FREQUENCY (32768U) /* in Hz, LFCLK*/
/**
* Default offset of 2 ticks is not enough, see figures 8 and 9 in
* https://docs.nordicsemi.com/bundle/ps_nrf52840/page/rtc.html.
*/
#define RTT_MIN_OFFSET (3U)
#ifndef RTT_FREQUENCY
#define RTT_FREQUENCY (1024U) /* in Hz */