1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2025-12-25 06:23:53 +01:00

Merge pull request #15034 from maribu/xtimer_shift_fallback

tests/xtimer_{rmutex,mutex}_lock_timeout: Fix compilation
This commit is contained in:
benpicco 2020-09-17 16:29:13 +02:00 committed by GitHub
commit 2e89cf3398
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 14 additions and 0 deletions

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

View File

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