aboutsummaryrefslogtreecommitdiff
path: root/spaghetti-monster/fsm-pcint.h
diff options
context:
space:
mode:
authorSelene ToyKeeper2019-11-14 19:47:49 -0700
committerSelene ToyKeeper2019-11-14 19:47:49 -0700
commit5362c032fdca4b20af49db0409a03524a396b815 (patch)
tree1d437085b5b3472279167aee905385e39a4a1fe1 /spaghetti-monster/fsm-pcint.h
parentmerged from fsm branch to get safety ramp-down and version check functions, a... (diff)
parentmerged irq-refactor branch, which fixes some small but long-standing issues: (diff)
downloadanduril-5362c032fdca4b20af49db0409a03524a396b815.tar.gz
anduril-5362c032fdca4b20af49db0409a03524a396b815.tar.bz2
anduril-5362c032fdca4b20af49db0409a03524a396b815.zip
merged fsm updates / irq-refactor branch, to get more stable voltage readings
(and otherwise get recent bugfixes)
Diffstat (limited to 'spaghetti-monster/fsm-pcint.h')
-rw-r--r--spaghetti-monster/fsm-pcint.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/spaghetti-monster/fsm-pcint.h b/spaghetti-monster/fsm-pcint.h
index ec3ae4b..a7f3733 100644
--- a/spaghetti-monster/fsm-pcint.h
+++ b/spaghetti-monster/fsm-pcint.h
@@ -20,6 +20,7 @@
#ifndef FSM_PCINT_H
#define FSM_PCINT_H
+volatile uint8_t irq_pcint = 0; // pin change interrupt happened?
//static volatile uint8_t button_was_pressed;
#define BP_SAMPLES 32
volatile uint8_t button_last_state;