[riot-devel] vtimer_usleep_until or similar

Kaspar Schleiser kaspar at schleiser.de
Sat Oct 25 20:43:36 CEST 2014


Hi,

On 10/21/14 17:25, Kaspar Schleiser wrote:
> On Tue, 21 Oct 2014 15:02:47 +0200
> Daniel Amkær Sørensen <daniel.amkaer at gmail.com> wrote:
>> I have a feature proposal in the interest of performing a periodic task.
>> The feature exists already in FreeRTOS, so there is plenty of inspiration.
>>
>> The function would be similar to vtimer_usleep, except that you call it and
>> it will calculate the right time interval to sleep.
> I've made a draft-PR (1850) implementing vtimer_sleep_until and vtimer_usleep_until.
I've updated the PR with doxygen. Also there's now a safeguard so when 
specifying a target time that would be in the past, the functions return 
directly.

Kaspar


More information about the devel mailing list