> On 12 Jul 2016, at 22:02, Kaspar Schleiser <kas...@schleiser.de> 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 achieving some repetitive task, you should perhaps 
configure a hw timer to create a stream of interrupts.

Said interrupts then individually wake up mcu, go via irq handler and start 
processing that then yields, allowing the scheduler to put mcu into sleep mode. 
This is then repeated.

Most normal modern mcus support configuring a timer for this purpose, the 
interrupts can come from an external source or mcu internal peripherals such as 
adc can act as interrupt stream generator.

 - t
_______________________________________________
devel mailing list
devel@riot-os.org
https://lists.riot-os.org/mailman/listinfo/devel

Reply via email to