diff options
| author | Selene ToyKeeper | 2020-03-05 17:51:27 -0700 |
|---|---|---|
| committer | Selene ToyKeeper | 2020-03-05 17:51:27 -0700 |
| commit | 4d1c7a34fd00a4dd19e591ea0602f0f47f10d9f0 (patch) | |
| tree | 8a22c1983165f5edf9fe72733690680712a792c2 /spaghetti-monster/fsm-pcint.c | |
| parent | merged from fsm, mostly to get thermal regulation updates (diff) | |
| download | anduril-4d1c7a34fd00a4dd19e591ea0602f0f47f10d9f0.tar.gz anduril-4d1c7a34fd00a4dd19e591ea0602f0f47f10d9f0.tar.bz2 anduril-4d1c7a34fd00a4dd19e591ea0602f0f47f10d9f0.zip | |
initial support for Noctigon KR4
(not complete, but far enough that it installs and runs)
New hardware support features:
- allow using PCINT other than 0 (PCINT1, PCINT2, etc)
- option to ignore voltage ADC while the button is pressed
(because my prototype shorts the voltage divider to 0 while the button is down)
Diffstat (limited to '')
| -rw-r--r-- | spaghetti-monster/fsm-pcint.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/spaghetti-monster/fsm-pcint.c b/spaghetti-monster/fsm-pcint.c index 1ba1c15..d362633 100644 --- a/spaghetti-monster/fsm-pcint.c +++ b/spaghetti-monster/fsm-pcint.c @@ -66,7 +66,11 @@ inline void PCINT_off() { //void button_change_interrupt() { #if (ATTINY == 25) || (ATTINY == 45) || (ATTINY == 85) || (ATTINY == 1634) //EMPTY_INTERRUPT(PCINT0_vect); +#ifdef PCINT_vect +ISR(PCINT_vect) { +#else ISR(PCINT0_vect) { +#endif irq_pcint = 1; } #else |
