sys/xtimer: fix default config / XTIMER_WIDTH

This commit is contained in:
Kaspar Schleiser 2017-10-06 21:48:51 +02:00
parent 34a63f1c53
commit e8aacc19ce

View File

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