diff options
| author | Selene ToyKeeper | 2024-03-04 04:42:09 -0700 |
|---|---|---|
| committer | Selene ToyKeeper | 2024-03-04 04:42:09 -0700 |
| commit | 984758be300392d8390c9407b8c58a01f945653a (patch) | |
| tree | a5087c862d40e4c23976dfe6c9a263d2623f7b39 /fsm/eeprom.h | |
| parent | Merge branch 'trunk' into emisar-d3aa (diff) | |
| parent | enabled eeprom read/write stabilization by default on recent MCUs, (diff) | |
| download | anduril-984758be300392d8390c9407b8c58a01f945653a.tar.gz anduril-984758be300392d8390c9407b8c58a01f945653a.tar.bz2 anduril-984758be300392d8390c9407b8c58a01f945653a.zip | |
Merge branch 'trunk' into emisar-d3aa
* trunk:
enabled eeprom read/write stabilization by default on recent MCUs, to prevent corrupt data
thefreeman-avr32dd20-devkit: enable boost bypass at boot, so AA/NiMH can boot
avr32dd20-devkit: use unimplemented "CH" pin as a boost bypass control
added "emisar-2ch-fet-joined" build, for D4S w/ lighted switch
documented FW3X swapped pins better
documented Wurkkos TS25/TS11/FC13 distinctions
build.sh: don't require DFPs, newer avr-libc doesn't need them
use BLIP_LEVEL instead of 0 for "blip"s
clarified which-hex-file.md a bit; make sure the model number matches
fw3x: reduced pulsing on low modes
Diffstat (limited to 'fsm/eeprom.h')
| -rw-r--r-- | fsm/eeprom.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/fsm/eeprom.h b/fsm/eeprom.h index 1e10fd2..d5f0363 100644 --- a/fsm/eeprom.h +++ b/fsm/eeprom.h @@ -55,3 +55,11 @@ // if this marker isn't found, the eeprom is assumed to be blank #define EEP_MARKER 0b10100101 +// wait a few ms before eeprom operations, to wait for power to stabilize +// (otherwise reads or writes can get corrupt data) +// (not necessary on some hardware, +// but enabled by default when there's space) +#if defined(LED_ENABLE_PIN) || defined(LED2_ENABLE_PIN) || (ROM_SIZE > 10000) + #define USE_EEP_DELAY +#endif + |
