diff options
author | Drashna Jaelre <drashna@live.com> | 2020-02-14 01:06:06 -0800 |
---|---|---|
committer | Florian Didron <fdidron@users.noreply.github.com> | 2020-02-26 10:15:12 +0900 |
commit | ebd4b1dc1e9ae56d47c41ae896c5a72a749ed0fa (patch) | |
tree | 9dbefb63142363af9d8e2258d86a2f303b2e6a79 /drivers/eeprom/eeprom_transient.h | |
parent | 30ed4bdb38e68400b1bb13f3509516bfdf7a95be (diff) |
Add additional fixes to EEPROM driver selection (#7274) (#266)
* Add additional fixes to EEPROM driver selection (#7274)
- uprintf -> dprintf
- Fix atsam "vendor" eeprom.
- Bump Kinetis K20x to 64 bytes, too.
- Rollback Kinetis to 32 bytes as partitioning can only be done once. Add warning about changing the value.
- Change RAM-backed "fake" EEPROM implementations to match eeconfig's current usage.
- Add 24LC128 by request.
* format code according to conventions [skip ci]
Co-authored-by: Nick Brassel <nick@tzarc.org>
Co-authored-by: QMK Bot <hello@qmk.fm>
Co-authored-by: Florian Didron <fdidron@users.noreply.github.com>
Diffstat (limited to 'drivers/eeprom/eeprom_transient.h')
-rw-r--r-- | drivers/eeprom/eeprom_transient.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/eeprom/eeprom_transient.h b/drivers/eeprom/eeprom_transient.h index a739fe393a..d06189b246 100644 --- a/drivers/eeprom/eeprom_transient.h +++ b/drivers/eeprom/eeprom_transient.h @@ -20,5 +20,6 @@ The size of the transient EEPROM buffer size. */ #ifndef TRANSIENT_EEPROM_SIZE -# define TRANSIENT_EEPROM_SIZE 64 +# include "eeconfig.h" +# define TRANSIENT_EEPROM_SIZE (((EECONFIG_SIZE + 3) / 4) * 4) // based off eeconfig's current usage, aligned to 4-byte sizes, to deal with LTO #endif |