diff --git a/tests/xtimer_mutex_lock_timeout/main.c b/tests/xtimer_mutex_lock_timeout/main.c index f06cf8e25c..b6df26678e 100644 --- a/tests/xtimer_mutex_lock_timeout/main.c +++ b/tests/xtimer_mutex_lock_timeout/main.c @@ -25,6 +25,13 @@ #include "msg.h" #include "irq.h" +/* XTIMER_SHIFT can be undefined when using xtimer_on_ztimer on boards + * incompatible with xtimers tick conversion, e.g. the waspmote-pro + */ +#ifndef XTIMER_SHIFT +#define XTIMER_SHIFT (0) +#endif + /* timeout at one millisecond (1000 us) to make sure it does not spin. */ #define LONG_MUTEX_TIMEOUT 1000 diff --git a/tests/xtimer_rmutex_lock_timeout/main.c b/tests/xtimer_rmutex_lock_timeout/main.c index 0bf324073f..8cac5b0fda 100644 --- a/tests/xtimer_rmutex_lock_timeout/main.c +++ b/tests/xtimer_rmutex_lock_timeout/main.c @@ -26,6 +26,13 @@ #include "msg.h" #include "irq.h" +/* XTIMER_SHIFT can be undefined when using xtimer_on_ztimer on boards + * incompatible with xtimers tick conversion, e.g. the waspmote-pro + */ +#ifndef XTIMER_SHIFT +#define XTIMER_SHIFT (0) +#endif + /* timeout at one millisecond (1000 us) to make sure it does not spin. */ #define LONG_RMUTEX_TIMEOUT 1000