add power save mode RDC_CONF_PT_YIELD_OFF
This commit is contained in:
parent
248a1e3882
commit
76ea945fd7
2 changed files with 5 additions and 0 deletions
|
@ -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);
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue