1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00

Merge pull request #7704 from gebart/pr/xtimer-shift-32768hz

xtimer: Set XTIMER_SHIFT to 0 if underlying timer is 32768 Hz
This commit is contained in:
Joakim Nohlgård 2017-10-10 14:24:56 +02:00 committed by GitHub
commit ca0db13467

View File

@ -579,7 +579,11 @@ void xtimer_set_timeout_flag(xtimer_t *t, uint32_t timeout);
#endif
#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
*