Skip to content
Snippets Groups Projects
Commit a4ba6c12 authored by Joakim Nohlgård's avatar Joakim Nohlgård
Browse files

xtimer: Set XTIMER_SHIFT to 0 if underlying timer is 32768 Hz

parent a295b0eb
Branches
No related tags found
No related merge requests found
...@@ -579,7 +579,11 @@ void xtimer_set_timeout_flag(xtimer_t *t, uint32_t timeout); ...@@ -579,7 +579,11 @@ void xtimer_set_timeout_flag(xtimer_t *t, uint32_t timeout);
#endif #endif
#ifndef XTIMER_SHIFT #ifndef XTIMER_SHIFT
#if (XTIMER_HZ == XTIMER_HZ_BASE) #if (XTIMER_HZ == 32768ul)
/* No shift necessary, the conversion is not a power of two and is handled by
* functions in tick_conversion.h */
#define XTIMER_SHIFT (0)
#elif (XTIMER_HZ == XTIMER_HZ_BASE)
/** /**
* @brief xtimer prescaler value * @brief xtimer prescaler value
* *
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment