Re: [riot-devel] I have question about scheduler when all thread in sleep

2016-07-13 Thread Joakim Nohlgård
Dear Teemu, What you are describing sounds like the xtimer subsystem in RIOT. It uses a hardware timer to schedule tasks in the future. See examples/xtimer_periodic_wakeup in the RIOT sources for an example on how to achieve periodic scheduling for your task. Also note that the function

Re: [riot-devel] I have question about scheduler when all thread in sleep

2016-07-13 Thread Teemu Hakala
> On 12 Jul 2016, at 22:02, Kaspar Schleiser wrote: > > The system gets woken up by external interrupts, e.g., a timer, > gpio-pin. That powers up the MCU > thread_flag), that triggers the scheduler and > The scheduler never wakes up itself In this thinking concept of

Re: [riot-devel] I have question about scheduler when all thread in sleep

2016-07-12 Thread Kaspar Schleiser
Hey, On 07/12/2016 07:08 PM, 신익희 wrote: > in this condition, when scheduler wake up from low power mode and > restart schedule? > > and how to know scheduler when wake up itself? The system gets woken up by external interrupts, e.g., a timer, gpio-pin. That powers up the MCU and executes the

[riot-devel] I have question about scheduler when all thread in sleep

2016-07-12 Thread 신익희
when all thread in sleep except idle thread then idle task call lpm_set and OS go to low power mode in this condition, when scheduler wake up from low power mode and restart schedule? and how to know scheduler when wake up itself? ___ devel mailing