[riot-devel] LPM idle_thread

Frank Holtz frank-riot2015 at holtznet.de
Sat May 9 18:39:30 CEST 2015


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;
}
-----------------------------------------------



More information about the devel mailing list