aboutsummaryrefslogtreecommitdiff
path: root/spaghetti-monster/fsm-misc.h
diff options
context:
space:
mode:
authorSelene ToyKeeper2017-10-21 06:51:27 -0600
committerSelene ToyKeeper2017-10-21 06:51:27 -0600
commita154ddbda5477a9b5a66333b8777fd6d1ee99d39 (patch)
tree30f1b2f8869ef78a5dbf3d84fa3ec2e74325a741 /spaghetti-monster/fsm-misc.h
parentDelay un-setting go_to_standby until the last moment, in case set_level() wan... (diff)
downloadanduril-a154ddbda5477a9b5a66333b8777fd6d1ee99d39.tar.gz
anduril-a154ddbda5477a9b5a66333b8777fd6d1ee99d39.tar.bz2
anduril-a154ddbda5477a9b5a66333b8777fd6d1ee99d39.zip
Moved indicator_led() from Anduril into FSM. Made it auto-set indicator level based on ramp level.
Made Anduril configure voltage fudge and indicator LED functions based on driver type. Removed "ticks_spent_awake" thing since it's redundant. EV_tick arg does the same thing in fewer bytes. Rearranged some clauses in off_state to put events in a more coherent order.
Diffstat (limited to 'spaghetti-monster/fsm-misc.h')
-rw-r--r--spaghetti-monster/fsm-misc.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/spaghetti-monster/fsm-misc.h b/spaghetti-monster/fsm-misc.h
index 5e4f3d6..4e0eb4f 100644
--- a/spaghetti-monster/fsm-misc.h
+++ b/spaghetti-monster/fsm-misc.h
@@ -42,4 +42,9 @@ uint8_t blink(uint8_t num, uint8_t speed);
#endif
*/
+#ifdef USE_INDICATOR_LED
+void indicator_led(uint8_t lvl);
+#endif
+
+
#endif