aboutsummaryrefslogtreecommitdiff
path: root/spaghetti-monster/fsm-wdt.c (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Fixed the sleep tick counter wrapping around to 0 instead of 32768.Selene ToyKeeper2018-11-111-1/+3
|
* Several fixes...Selene ToyKeeper2018-11-111-8/+15
| | | | | | | | | | - Made momentary+lockout modes smaller and work better. - Fixed buggy timing on hold events; made ticks_since_last_event reset when it should. - Reduced ROM size by caching volatile ticks_since_last_event sometimes. - Swapped what the top Event bit means, because it makes event handlers easier to write. - Made the maximum click event keep triggering if user keeps pressing, instead of dropping everything after the limit.
* Rewrote the event system to use a single byte for each event instead of an ↵Selene ToyKeeper2018-11-111-21/+17
| | | | | | | array of actions. Not thoroughly tested yet, not done yet, have only updated Anduril to fit, and only partially.
* Changed halfsleep mode to TICK_DURING_STANDBY. Added blinking indicator LED ↵Selene ToyKeeper2018-06-171-7/+16
| | | | support to Anduril.
* Implemented halfsleep mode.Selene ToyKeeper2018-06-171-0/+17
| | | | | | Will probably change it quite a bit though, so I'm checking in changes first. Needs to be "tick during standby" instead of "half sleep".
* Work around issues related to ADC interrupt auto-triggering itself.Selene ToyKeeper2018-01-241-2/+2
| | | | | | (was firing off 1000 times faster than desired, causing several issues) (now only executes when explicitly requested by the WDT)
* Debouncing finally works (at least, it does on my two test hosts).Selene ToyKeeper2017-12-121-31/+7
|
* Greatly improved button debouncing. Helps a lot on FW3A and my light saber.Selene ToyKeeper2017-12-111-2/+31
| | | | | Debouncing isn't 100% yet though.
* Added reversing to Anduril. Made EV_tick always send 0 while in "hold" state.Selene ToyKeeper2017-09-281-3/+8
| | | | | Reversing is a build-time option.
* Completely reorganized SpaghettiMonster code into smaller logical pieces: ↵Selene ToyKeeper2017-08-191-0/+107
fsm-*.c and fsm-*.h.