aboutsummaryrefslogtreecommitdiff
path: root/spaghetti-monster/fsm-main.h (follow)
Commit message (Collapse)AuthorAgeFilesLines
* refactored how interrupts work...Selene ToyKeeper2019-11-141-0/+2
| | | | | | | | | | | | | | | set a flag and return immediately, then handle the actual logic later during a less-critical code path Enables smarter responses to standby wakeups. Seems to fix missed button presses during standby, and most of the too-fast sleep ticks. Also eliminated waits from button state measurement, so it can happen easier during standby. (also eliminates the chance of an infinite loop on extra-noisy hardware) Also might improve timing-sensitive interrupts like attiny85 PWM channel 4, or a PWM-DSM hybrid technique I'd like to try. BUT this change also appears to break the thermal sensor, so that needs to be fixed.
* Completely reorganized SpaghettiMonster code into smaller logical pieces: ↵Selene ToyKeeper2017-08-191-0/+25
fsm-*.c and fsm-*.h.