add power save mode RDC_CONF_PT_YIELD_OFF

This commit is contained in:
Harald Pichler 2014-12-09 16:42:45 +01:00
parent 248a1e3882
commit 76ea945fd7
2 changed files with 5 additions and 0 deletions

View file

@ -454,8 +454,10 @@ powercycle(struct rtimer *t, void *ptr)
rtimer_arch_sleep(CYCLE_TIME - (RTIMER_NOW() - cycle_start));
} else {
sleepcycle = 0;
#ifndef RDC_CONF_PT_YIELD_OFF
schedule_powercycle_fixed(t, CYCLE_TIME + cycle_start);
PT_YIELD(&pt);
#endif
}
#else
schedule_powercycle_fixed(t, CYCLE_TIME + cycle_start);

View file

@ -38,6 +38,9 @@
#define SICSLOWPAN_CONF_FRAG 1
/* Save energy */
#define RDC_CONF_PT_YIELD_OFF
/* For Debug: Dont allow MCU sleeping between channel checks */
//#undef RDC_CONF_MCU_SLEEP
//#define RDC_CONF_MCU_SLEEP 0