aboutsummaryrefslogtreecommitdiff
path: root/fsm/eeprom.c (unfollow)
Commit message (Collapse)AuthorFilesLines
2024-02-02enabled eeprom read/write stabilization by default on recent MCUs,Selene ToyKeeper1-4/+4
to prevent corrupt data This was enabled on more build targets before, but the *_ENABLE_PIN definition names changed and the eeprom code didn't, so it was not compiled in for a few months on some lights which probably needed it. To fix that, it's now enabled by default on everything bigger than attiny85, since it doesn't really hurt anything if it's enabled when not needed.
2023-11-02got things to compile again, renamed #includesSelene ToyKeeper1-1/+1
(also modified the build scripts to work with the new file structure)
2023-11-02reorganized project files (part 1)Selene ToyKeeper1-0/+0
(just moved files, didn't change the contents yet, and nothing will work without updating #includes and build scripts and stuff)
2023-04-17switched the rest of FSM + Anduril to use SPDX license headersSelene ToyKeeper1-23/+5
instead of full GPL headers (or all too often, nothing at all) There are a few "FIXME" entries where I'm not sure about the correct copyright.
2020-10-14renamed LED_ENABLE2_* to LED2_ENABLE_*Selene ToyKeeper1-4/+4
2020-05-14fixed eeprom_wl functions on attiny1634Selene ToyKeeper1-10/+10
(didn't build before, due to a data type mismatch)
2020-03-21fixed potential eeprom corruption after turning boost/opamp chip on/offSelene ToyKeeper1-0/+16
(some boost chips can make power unstable for a few ms, so we have to wait before accessing eeprom)
2020-02-27fixed eeprom corruption after turning boost chip on/offSelene ToyKeeper1-0/+16
(boost chip apparently makes power unstable for a few ms, so we have to wait before accessing eeprom)
2018-08-22Replaced hardcoded eeprom index values with auto-calculated enums.Selene ToyKeeper1-2/+2
2017-12-03Made it possible to override address of eeprom array in RAM.Selene ToyKeeper1-0/+4
(useful when trying to use a single large data structure without wasting twice its size in RAM)
2017-11-06Made FSM eeprom more atomic by writing marker byte last.Selene ToyKeeper1-1/+4
2017-09-29Added option to start at memorized level, for momentary use on dual-switch ↵Selene ToyKeeper1-2/+2
lights. Renamed WL versions of eeprom functions, for naming consistency.
2017-08-26Made wear-levelling work. Takes a bunch of extra ROM though.Selene ToyKeeper1-6/+42
Also, I've only tested it a tiny amount.
2017-08-26Added eeprom load/save API (no wear levelling yet), verified it works in ↵Selene ToyKeeper1-0/+71
DarkHorse.