Skip to content
Snippets Groups Projects
Unverified Commit b117638f authored by Kaspar Schleiser's avatar Kaspar Schleiser Committed by GitHub
Browse files

Merge pull request #8886 from gebart/pr/xtimer-shift-6

xtimer: Add XTIMER_SHIFT = 6 automatic option
parents ff543db9 0befe393
No related branches found
No related tags found
No related merge requests found
......@@ -610,6 +610,8 @@ void xtimer_set_timeout_flag(xtimer_t *t, uint32_t timeout);
#define XTIMER_SHIFT (4)
#elif (XTIMER_HZ >> 5 == XTIMER_HZ_BASE) || (XTIMER_HZ << 5 == XTIMER_HZ_BASE)
#define XTIMER_SHIFT (5)
#elif (XTIMER_HZ >> 6 == XTIMER_HZ_BASE) || (XTIMER_HZ << 6 == XTIMER_HZ_BASE)
#define XTIMER_SHIFT (6)
#else
#error "XTIMER_SHIFT cannot be derived for given XTIMER_HZ, verify settings!"
#endif
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment