tests/xtimer_mutex_lock_timeout: Fix compilation

Let XTIMER_SHIFT fall back to zero to allow compilation with the waspmote-pro
This commit is contained in:
Marian Buschsieweke 2020-08-20 13:41:37 +02:00
parent 970fdff2c6
commit 4bb1e530bf
No known key found for this signature in database
GPG Key ID: 61F64C6599B1539F

View File

@ -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