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:
parent
7dc6fb442f
commit
4d6efb2302
1 changed files with 6 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue