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-wdt.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'spaghetti-monster/fsm-wdt.h') diff --git a/spaghetti-monster/fsm-wdt.h b/spaghetti-monster/fsm-wdt.h index 74851af..1173382 100644 --- a/spaghetti-monster/fsm-wdt.h +++ b/spaghetti-monster/fsm-wdt.h @@ -25,4 +25,8 @@ void WDT_on(); inline void WDT_off(); +#ifdef USE_HALFSLEEP_MODE +volatile uint8_t f_wdt = 0; +#endif + #endif -- cgit v1.2.3 From 3dcfc924bf18c48b76f4b950471160436fddb316 Mon Sep 17 00:00:00 2001 From: Selene ToyKeeper Date: Sun, 17 Jun 2018 19:40:38 -0600 Subject: Changed halfsleep mode to TICK_DURING_STANDBY. Added blinking indicator LED support to Anduril. --- spaghetti-monster/fsm-wdt.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'spaghetti-monster/fsm-wdt.h') diff --git a/spaghetti-monster/fsm-wdt.h b/spaghetti-monster/fsm-wdt.h index 1173382..3c395c1 100644 --- a/spaghetti-monster/fsm-wdt.h +++ b/spaghetti-monster/fsm-wdt.h @@ -25,7 +25,7 @@ void WDT_on(); inline void WDT_off(); -#ifdef USE_HALFSLEEP_MODE +#ifdef TICK_DURING_STANDBY volatile uint8_t f_wdt = 0; #endif -- cgit v1.2.3