[riot-devel] vtimer_usleep_until or similar

Daniel Amkær Sørensen daniel.amkaer at gmail.com
Tue Oct 21 15:41:41 CEST 2014

Thanks for the quick response.

I have some input. I'm looking for the functionality which the FreeRTOS
function implements. FreeRTOS calculates the time to sleep based on the
previous waking time, and updates the pointed variable accordingly.

"Pointer to a variable that holds the time at which the task was last
unblocked. The variable must be initialised with the current time prior to
its first use (see the example below). Following this the variable is
automatically updated within vTaskDelayUntil()."

This ensures that one call to the function each loop makes the function run
with a chosen frequency.

2014-10-21 15:26 GMT+02:00 Martine Lenders <authmillenon at gmail.com>:

> Hi,
> I opened a PR for this: https://github.com/RIOT-OS/RIOT/pull/1849
> Cheers,
> Martine
> 2014-10-21 15:02 GMT+02:00 Daniel Amkær Sørensen <daniel.amkaer at gmail.com>
> :
>> Hi,
>> 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.
>> More info here: http://www.freertos.org/vtaskdelayuntil.html
>> Best Regards
>> Daniel Amkær Sørensen
>> _______________________________________________
>> devel mailing list
>> devel at riot-os.org
>> http://lists.riot-os.org/mailman/listinfo/devel
> _______________________________________________
> devel mailing list
> devel at riot-os.org
> http://lists.riot-os.org/mailman/listinfo/devel
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.riot-os.org/pipermail/devel/attachments/20141021/9ca5234d/attachment.html>

More information about the devel mailing list