tests: kernel: sleep: Add Silabs adjustment to max limit

Several devices have hardware-specific additional limits for
how short a sleep cycle can be. Add an entry for devices based
on Silabs sleeptimer when the OS tick rate is equal to the timer
frequency.

Signed-off-by: Aksel Skauge Mellbye <aksel.mellbye@silabs.com>
This commit is contained in:
Aksel Skauge Mellbye 2025-03-12 20:23:00 +01:00 committed by Benjamin Cabé
commit 4d6efb2302

View file

@ -36,6 +36,12 @@
#elif defined(CONFIG_CC13XX_CC26XX_RTC_TIMER) && \
(CONFIG_SYS_CLOCK_TICKS_PER_SEC > 16384)
#define MAXIMUM_SHORTEST_TICKS 3
#elif defined(CONFIG_SILABS_SLEEPTIMER_TIMER) && (CONFIG_SYS_CLOCK_TICKS_PER_SEC > 16384)
/* Similar situation for Silabs devices using sleeptimer due to the
* limitation that a value too close to the current time cannot be
* loaded to its comparator.
*/
#define MAXIMUM_SHORTEST_TICKS 2
#else
#define MAXIMUM_SHORTEST_TICKS 1
#endif