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 /**