From 8df42f2390ff20866f2404789764d0267b59c35b Mon Sep 17 00:00:00 2001 From: Francisco Molina Date: Fri, 2 Oct 2020 12:49:15 +0200 Subject: [PATCH] cpu/cc2538: add RTT_MIN_OFFSET --- cpu/cc2538/include/periph_cpu.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/cpu/cc2538/include/periph_cpu.h b/cpu/cc2538/include/periph_cpu.h index b73732c9a4..8623e44df2 100644 --- a/cpu/cc2538/include/periph_cpu.h +++ b/cpu/cc2538/include/periph_cpu.h @@ -344,6 +344,10 @@ typedef gpio_t adc_conf_t; #define RTT_ISR isr_sleepmode #define RTT_MAX_VALUE (0xffffffff) #define RTT_FREQUENCY (CLOCK_OSC32K) +/* When setting a new compare value, the value must be at least 5 more + than the current sleep timer value. Otherwise, the timer compare + event may be lost. */ +#define RTT_MIN_OFFSET (5U) /** @} */ /**