[riot-devel] LPM idle_thread

Joakim Gebart joakim.gebart at eistec.se
Sat May 9 18:45:11 CEST 2015


See https://github.com/RIOT-OS/RIOT/issues/2927
It's not yet been developed fully, those are just place holders. I have
proposed to use a more dynamic scheme for the LPM modes.

Best regards, Joakim
www.eistec.se
On May 9, 2015 6:40 PM, "Frank Holtz" <frank-riot2015 at holtznet.de> wrote:

> Hello,
>
> why is LPM_SLEEP or LPM_POWERDOWN is commented out?
>
> kernel_init.c:
> -----------------------------------------------
> static void *idle_thread(void *arg)
> {
>     (void) arg;
>
>     while (1) {
>         if (lpm_prevent_sleep) {
>             lpm_set(LPM_IDLE);
>         }
>         else {
>             lpm_set(LPM_IDLE);
>             /* lpm_set(LPM_SLEEP); */
>             /* lpm_set(LPM_POWERDOWN); */
>         }
>     }
>
>     return NULL;
> }
> -----------------------------------------------
>
> _______________________________________________
> devel mailing list
> devel at riot-os.org
> https://lists.riot-os.org/mailman/listinfo/devel
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.riot-os.org/pipermail/devel/attachments/20150509/8b0f8537/attachment.html>


More information about the devel mailing list