[riot-devel] vtimer_usleep_until or similar

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


Hi Kaspar,

I'll check it out tomorrow.
What happens if the interval is passed already when calling the sleep
function?

/Daniel

2014-10-21 17:25 GMT+02:00 Kaspar Schleiser <kaspar at schleiser.de>:

> Hi Daniel,
>
> 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.
>
> Not well tested, but worksforme(tm).
>
> Kaspar
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.riot-os.org/pipermail/devel/attachments/20141021/c8f1c7be/attachment-0001.html>


More information about the devel mailing list