Skip to content

Commit bdf062a

Browse files
committed
fixup! fixup! xtimer: timer & target overflow, hang resolved.
1 parent 1ce7bdb commit bdf062a

1 file changed

Lines changed: 14 additions & 0 deletions

File tree

sys/include/xtimer/implementation.h

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,21 @@ static inline uint32_t _xtimer_lltimer_mask(uint32_t val)
6565
* @brief xtimer internal stuff
6666
* @internal
6767
*/
68+
6869
uint64_t _xtimer_now64(void);
70+
71+
/**
72+
* @brief Sets the timer to the appropriate timer_list or list_head.
73+
*
74+
* @note The target to set the timer to has to be at least bigger then then
75+
* ticks needed to jump into the function and calculate '_xtimer_now()'.
76+
* So that 'now' did not pass the target.
77+
* This is crucial when using low CPU frequencies and/or when the
78+
* '_xtimer_now()' call needs multiple xtimer ticks to evaluate.
79+
*
80+
* @param[in] timer pointer to xtimer_t which is added to the list.
81+
* @param[in] target Absolut target value in ticks.
82+
*/
6983
int _xtimer_set_absolute(xtimer_t *timer, uint32_t target);
7084
void _xtimer_set(xtimer_t *timer, uint32_t offset);
7185
void _xtimer_set64(xtimer_t *timer, uint32_t offset, uint32_t long_offset);

0 commit comments

Comments
 (0)