diff options
| author | Selene ToyKeeper | 2018-01-24 18:28:29 -0700 |
|---|---|---|
| committer | Selene ToyKeeper | 2018-01-24 18:28:29 -0700 |
| commit | 8267c1f121d9766e37d2056004bd7bb47b512288 (patch) | |
| tree | 80e49470467f24634f3a6261a2d8a99c2cc5e26f /spaghetti-monster | |
| parent | Work around issues related to ADC interrupt auto-triggering itself. (diff) | |
| download | anduril-8267c1f121d9766e37d2056004bd7bb47b512288.tar.gz anduril-8267c1f121d9766e37d2056004bd7bb47b512288.tar.bz2 anduril-8267c1f121d9766e37d2056004bd7bb47b512288.zip | |
Save a few bytes by changing how PCINT is defined.
Minor comment cleaning.
Diffstat (limited to '')
| -rw-r--r-- | spaghetti-monster/fsm-events.h | 2 | ||||
| -rw-r--r-- | spaghetti-monster/fsm-pcint.c | 3 |
2 files changed, 3 insertions, 2 deletions
diff --git a/spaghetti-monster/fsm-events.h b/spaghetti-monster/fsm-events.h index 28f1b10..2721303 100644 --- a/spaghetti-monster/fsm-events.h +++ b/spaghetti-monster/fsm-events.h @@ -61,10 +61,8 @@ static volatile uint16_t ticks_since_last_event = 0; #define A_HOLD 6 #define A_RELEASE 7 #define A_RELEASE_TIMEOUT 8 -// TODO: add events for over/under-heat conditions (with parameter for severity) #define A_OVERHEATING 9 #define A_UNDERHEATING 10 -// TODO: add events for low voltage conditions #define A_VOLTAGE_LOW 11 //#define A_VOLTAGE_CRITICAL 12 #define A_DEBUG 255 // test event for debugging diff --git a/spaghetti-monster/fsm-pcint.c b/spaghetti-monster/fsm-pcint.c index 722cb88..a79572d 100644 --- a/spaghetti-monster/fsm-pcint.c +++ b/spaghetti-monster/fsm-pcint.c @@ -54,6 +54,8 @@ inline void PCINT_off() { } //void button_change_interrupt() { +EMPTY_INTERRUPT(PCINT0_vect); +/* ISR(PCINT0_vect) { //DEBUG_FLASH; @@ -65,6 +67,7 @@ ISR(PCINT0_vect) { // PCINT_inner(button_is_pressed()); } +*/ // should only be called from PCINT and/or WDT // (is a separate function to reduce code duplication) |
