xtimer: xtimer_spin_until(): value -> target
This commit is contained in:
parent
fb0322ee1b
commit
07f95cfdfa
@ -469,12 +469,12 @@ static inline uint32_t xtimer_now(void)
|
||||
#endif
|
||||
}
|
||||
|
||||
static inline void xtimer_spin_until(uint32_t value) {
|
||||
static inline void xtimer_spin_until(uint32_t target) {
|
||||
#if XTIMER_MASK
|
||||
value = _mask(value);
|
||||
target = _mask(target);
|
||||
#endif
|
||||
while (_xtimer_now() > value);
|
||||
while (_xtimer_now() < value);
|
||||
while (_xtimer_now() > target);
|
||||
while (_xtimer_now() < target);
|
||||
}
|
||||
|
||||
static inline void xtimer_spin(uint32_t offset) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user