diff --git a/tests/xtimer_longterm/main.c b/tests/xtimer_longterm/main.c index 21e7c7d31d6110e3bcc85c66f65a3250ccd677d4..4fe44c49ca1446a0b75fb64a90ad637c9b23ffa5 100644 --- a/tests/xtimer_longterm/main.c +++ b/tests/xtimer_longterm/main.c @@ -31,12 +31,12 @@ #define MSG_TICK (0xaffe) /* define sleep and timeout intervals */ -#define MIN_TO_TICKS(min) (XTIMER_USEC_TO_TICKS(60UL * 1000 * 1000 * min)) -#define INT_LONG_MSG (MIN_TO_TICKS(14)) -#define INT_LONG_SLEEP (MIN_TO_TICKS(18)) -#define INT_MID_MSG (MIN_TO_TICKS(3)) -#define INT_MID_SLEEP (MIN_TO_TICKS(5)) -#define INT_SHORT (XTIMER_USEC_TO_TICKS(50UL * 1000)) +#define MIN_TO_USEC(min) (60UL * min * SEC_IN_USEC) +#define INT_LONG_MSG (MIN_TO_USEC(14)) +#define INT_LONG_SLEEP (MIN_TO_USEC(18)) +#define INT_MID_MSG (MIN_TO_USEC(3)) +#define INT_MID_SLEEP (MIN_TO_USEC(5)) +#define INT_SHORT (50UL * MS_IN_USEC) /* and some timeout conditions */ #define SHORT_MIN_REACHED (60 * 20) /* 60 * 20 * 50ms = 1min */