From e8aacc19ce7d33a8f7af27fe1a0d711e1c25bdd5 Mon Sep 17 00:00:00 2001 From: Kaspar Schleiser Date: Fri, 6 Oct 2017 21:48:51 +0200 Subject: [PATCH] sys/xtimer: fix default config / XTIMER_WIDTH --- sys/include/xtimer.h | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/sys/include/xtimer.h b/sys/include/xtimer.h index 73fbf0e041..e2a3d52cc3 100644 --- a/sys/include/xtimer.h +++ b/sys/include/xtimer.h @@ -533,14 +533,15 @@ void xtimer_set_timeout_flag(xtimer_t *t, uint32_t timeout); */ #define XTIMER_CHAN (0) -#endif - -#ifndef XTIMER_WIDTH #if (TIMER_0_MAX_VALUE) == 0xfffffful #define XTIMER_WIDTH (24) #elif (TIMER_0_MAX_VALUE) == 0xffff #define XTIMER_WIDTH (16) -#else +#endif + +#endif + +#ifndef XTIMER_WIDTH /** * @brief xtimer timer width * @@ -549,7 +550,6 @@ void xtimer_set_timeout_flag(xtimer_t *t, uint32_t timeout); */ #define XTIMER_WIDTH (32) #endif -#endif #if (XTIMER_WIDTH != 32) || DOXYGEN /**