sys/xtimer: fix default config / XTIMER_WIDTH
This commit is contained in:
parent
34a63f1c53
commit
e8aacc19ce
@ -533,14 +533,15 @@ void xtimer_set_timeout_flag(xtimer_t *t, uint32_t timeout);
|
|||||||
*/
|
*/
|
||||||
#define XTIMER_CHAN (0)
|
#define XTIMER_CHAN (0)
|
||||||
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#ifndef XTIMER_WIDTH
|
|
||||||
#if (TIMER_0_MAX_VALUE) == 0xfffffful
|
#if (TIMER_0_MAX_VALUE) == 0xfffffful
|
||||||
#define XTIMER_WIDTH (24)
|
#define XTIMER_WIDTH (24)
|
||||||
#elif (TIMER_0_MAX_VALUE) == 0xffff
|
#elif (TIMER_0_MAX_VALUE) == 0xffff
|
||||||
#define XTIMER_WIDTH (16)
|
#define XTIMER_WIDTH (16)
|
||||||
#else
|
#endif
|
||||||
|
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#ifndef XTIMER_WIDTH
|
||||||
/**
|
/**
|
||||||
* @brief xtimer timer width
|
* @brief xtimer timer width
|
||||||
*
|
*
|
||||||
@ -549,7 +550,6 @@ void xtimer_set_timeout_flag(xtimer_t *t, uint32_t timeout);
|
|||||||
*/
|
*/
|
||||||
#define XTIMER_WIDTH (32)
|
#define XTIMER_WIDTH (32)
|
||||||
#endif
|
#endif
|
||||||
#endif
|
|
||||||
|
|
||||||
#if (XTIMER_WIDTH != 32) || DOXYGEN
|
#if (XTIMER_WIDTH != 32) || DOXYGEN
|
||||||
/**
|
/**
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user