From 520f5cdb983045c5518325f3c3665f59ca85435e Mon Sep 17 00:00:00 2001 From: Selene ToyKeeper Date: Sun, 24 Sep 2017 20:54:07 -0600 Subject: Added idle_mode() for slightly lower power use without turning off any regular functions. (PWM, ADC, WDT all still enabled; only useful in moon mode) Changed default ceilings in Anduril FW3A config. --- spaghetti-monster/fsm-standby.h | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'spaghetti-monster/fsm-standby.h') diff --git a/spaghetti-monster/fsm-standby.h b/spaghetti-monster/fsm-standby.h index a23bd0c..3a917fd 100644 --- a/spaghetti-monster/fsm-standby.h +++ b/spaghetti-monster/fsm-standby.h @@ -28,6 +28,13 @@ volatile uint8_t go_to_standby = 0; #define standby_mode sleep_until_eswitch_pressed void sleep_until_eswitch_pressed(); +#ifdef USE_IDLE_MODE +// deferred "idle" state trigger +// stops processing until next click or timer tick +//volatile uint8_t go_to_idle = 0; +void idle_mode(); +#endif + // TODO: half-sleep "twilight" mode with WDT on but running slowly #endif -- cgit v1.2.3