From cfedb2eaf4a0d62969ff05307ac40d4f1cdab2d9 Mon Sep 17 00:00:00 2001 From: Selene ToyKeeper Date: Sun, 17 Jun 2018 18:18:38 -0600 Subject: Implemented halfsleep mode. Will probably change it quite a bit though, so I'm checking in changes first. Needs to be "tick during standby" instead of "half sleep". --- spaghetti-monster/fsm-standby.h | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'spaghetti-monster/fsm-standby.h') diff --git a/spaghetti-monster/fsm-standby.h b/spaghetti-monster/fsm-standby.h index 0b410fa..bd362a3 100644 --- a/spaghetti-monster/fsm-standby.h +++ b/spaghetti-monster/fsm-standby.h @@ -25,6 +25,11 @@ // set this to nonzero to enter standby mode next time the system is idle volatile uint8_t go_to_standby = 0; +#ifdef USE_HALFSLEEP_MODE +// half-sleep "twilight" mode with WDT on but running slowly +volatile uint8_t halfsleep_mode = 0; +#endif + #define standby_mode sleep_until_eswitch_pressed void sleep_until_eswitch_pressed(); @@ -34,6 +39,4 @@ void sleep_until_eswitch_pressed(); void idle_mode(); #endif -// TODO: half-sleep "twilight" mode with WDT on but running slowly - #endif -- cgit v1.2.3