From ebd4b1dc1e9ae56d47c41ae896c5a72a749ed0fa Mon Sep 17 00:00:00 2001 From: Drashna Jaelre Date: Fri, 14 Feb 2020 01:06:06 -0800 Subject: 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 Co-authored-by: QMK Bot Co-authored-by: Florian Didron --- drivers/eeprom/eeprom_transient.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'drivers/eeprom/eeprom_transient.c') diff --git a/drivers/eeprom/eeprom_transient.c b/drivers/eeprom/eeprom_transient.c index 318a827900..b4c78c6f40 100644 --- a/drivers/eeprom/eeprom_transient.c +++ b/drivers/eeprom/eeprom_transient.c @@ -20,7 +20,7 @@ #include "eeprom_driver.h" #include "eeprom_transient.h" -static uint8_t transientBuffer[TRANSIENT_EEPROM_SIZE] = {0}; +__attribute__((aligned(4))) static uint8_t transientBuffer[TRANSIENT_EEPROM_SIZE] = {0}; size_t clamp_length(intptr_t offset, size_t len) { if (offset + len > TRANSIENT_EEPROM_SIZE) { -- cgit v1.2.3