From 88e1485ae659074d31b05a4d0ad2cae7b2d5298d Mon Sep 17 00:00:00 2001 From: Nick Brassel Date: Sun, 6 Nov 2022 12:18:55 +1100 Subject: [PATCH 1/4] Rename `eeprom_stm32` to `eeprom_legacy_emulated_flash`. --- builddefs/common_features.mk | 4 ++-- ...stm32.c => eeprom_legacy_emulated_flash.c} | 4 ++-- ...stm32.h => eeprom_legacy_emulated_flash.h} | 0 ....h => eeprom_legacy_emulated_flash_defs.h} | 0 platforms/eeprom.h | 6 ++--- ...=> eeprom_legacy_emulated_flash_tests.cpp} | 0 ...h => eeprom_legacy_emulated_flash_tests.h} | 2 +- platforms/test/rules.mk | 22 +++++++++---------- platforms/test/testlist.mk | 2 +- 9 files changed, 20 insertions(+), 20 deletions(-) rename platforms/chibios/drivers/eeprom/{eeprom_stm32.c => eeprom_legacy_emulated_flash.c} (99%) rename platforms/chibios/drivers/eeprom/{eeprom_stm32.h => eeprom_legacy_emulated_flash.h} (100%) rename platforms/chibios/drivers/eeprom/{eeprom_stm32_defs.h => eeprom_legacy_emulated_flash_defs.h} (100%) rename platforms/test/{eeprom_stm32_tests.cpp => eeprom_legacy_emulated_flash_tests.cpp} (100%) rename platforms/test/{eeprom_stm32_tests.h => eeprom_legacy_emulated_flash_tests.h} (81%) diff --git a/builddefs/common_features.mk b/builddefs/common_features.mk index e597924469a0..83ea7ae85bb1 100644 --- a/builddefs/common_features.mk +++ b/builddefs/common_features.mk @@ -216,10 +216,10 @@ else else ifeq ($(PLATFORM),CHIBIOS) ifneq ($(filter STM32F3xx_% STM32F1xx_% %_STM32F401xC %_STM32F401xE %_STM32F405xG %_STM32F411xE %_STM32F072xB %_STM32F042x6 %_GD32VF103xB %_GD32VF103x8, $(MCU_SERIES)_$(MCU_LDSCRIPT)),) # Emulated EEPROM - OPT_DEFS += -DEEPROM_DRIVER -DEEPROM_STM32_FLASH_EMULATED + OPT_DEFS += -DEEPROM_DRIVER -DEEPROM_LEGACY_EMULATED_FLASH COMMON_VPATH += $(PLATFORM_PATH)/$(PLATFORM_KEY)/$(DRIVER_DIR)/flash COMMON_VPATH += $(DRIVER_PATH)/flash - SRC += eeprom_driver.c eeprom_stm32.c flash_stm32.c + SRC += eeprom_driver.c eeprom_legacy_emulated_flash.c flash_stm32.c else ifneq ($(filter $(MCU_SERIES),STM32L0xx STM32L1xx),) # True EEPROM on STM32L0xx, L1xx OPT_DEFS += -DEEPROM_DRIVER -DEEPROM_STM32_L0_L1 diff --git a/platforms/chibios/drivers/eeprom/eeprom_stm32.c b/platforms/chibios/drivers/eeprom/eeprom_legacy_emulated_flash.c similarity index 99% rename from platforms/chibios/drivers/eeprom/eeprom_stm32.c rename to platforms/chibios/drivers/eeprom/eeprom_legacy_emulated_flash.c index 1a354dc21361..3c9506c8bbb7 100644 --- a/platforms/chibios/drivers/eeprom/eeprom_stm32.c +++ b/platforms/chibios/drivers/eeprom/eeprom_legacy_emulated_flash.c @@ -22,7 +22,7 @@ #include #include "util.h" #include "debug.h" -#include "eeprom_stm32.h" +#include "eeprom_legacy_emulated_flash.h" #include "flash_stm32.h" /* @@ -132,7 +132,7 @@ * */ -#include "eeprom_stm32_defs.h" +#include "eeprom_legacy_emulated_flash_defs.h" /* These bits are used for optimizing encoding of bytes, 0 and 1 */ #define FEE_WORD_ENCODING 0x8000 #define FEE_VALUE_NEXT 0x6000 diff --git a/platforms/chibios/drivers/eeprom/eeprom_stm32.h b/platforms/chibios/drivers/eeprom/eeprom_legacy_emulated_flash.h similarity index 100% rename from platforms/chibios/drivers/eeprom/eeprom_stm32.h rename to platforms/chibios/drivers/eeprom/eeprom_legacy_emulated_flash.h diff --git a/platforms/chibios/drivers/eeprom/eeprom_stm32_defs.h b/platforms/chibios/drivers/eeprom/eeprom_legacy_emulated_flash_defs.h similarity index 100% rename from platforms/chibios/drivers/eeprom/eeprom_stm32_defs.h rename to platforms/chibios/drivers/eeprom/eeprom_legacy_emulated_flash_defs.h diff --git a/platforms/eeprom.h b/platforms/eeprom.h index 8cb7e342dc71..2b2d2620c27f 100644 --- a/platforms/eeprom.h +++ b/platforms/eeprom.h @@ -44,8 +44,8 @@ void eeprom_update_block(const void *__src, void *__dst, size_t __n); #elif defined(EEPROM_TEENSY) # include "eeprom_teensy.h" # define TOTAL_EEPROM_BYTE_COUNT (EEPROM_SIZE) -#elif defined(EEPROM_STM32_FLASH_EMULATED) -# include "eeprom_stm32_defs.h" +#elif defined(EEPROM_LEGACY_EMULATED_FLASH) +# include "eeprom_legacy_emulated_flash_defs.h" # define TOTAL_EEPROM_BYTE_COUNT (FEE_DENSITY_BYTES) #elif defined(EEPROM_SAMD) # include "eeprom_samd.h" @@ -64,7 +64,7 @@ void eeprom_update_block(const void *__src, void *__dst, size_t __n); # define TOTAL_EEPROM_BYTE_COUNT 32 # else // Flash wear-leveling testing -# include "eeprom_stm32_tests.h" +# include "eeprom_legacy_emulated_flash_tests.h" # define TOTAL_EEPROM_BYTE_COUNT (EEPROM_SIZE) # endif #else diff --git a/platforms/test/eeprom_stm32_tests.cpp b/platforms/test/eeprom_legacy_emulated_flash_tests.cpp similarity index 100% rename from platforms/test/eeprom_stm32_tests.cpp rename to platforms/test/eeprom_legacy_emulated_flash_tests.cpp diff --git a/platforms/test/eeprom_stm32_tests.h b/platforms/test/eeprom_legacy_emulated_flash_tests.h similarity index 81% rename from platforms/test/eeprom_stm32_tests.h rename to platforms/test/eeprom_legacy_emulated_flash_tests.h index 35ed885e52ff..60e863b4543b 100644 --- a/platforms/test/eeprom_stm32_tests.h +++ b/platforms/test/eeprom_legacy_emulated_flash_tests.h @@ -3,6 +3,6 @@ #pragma once #include "flash_stm32.h" -#include "eeprom_stm32.h" +#include "eeprom_legacy_emulated_flash.h" #define EEPROM_SIZE (FEE_PAGE_SIZE * FEE_PAGE_COUNT / 2) diff --git a/platforms/test/rules.mk b/platforms/test/rules.mk index a2baa283d02c..529888e78f32 100644 --- a/platforms/test/rules.mk +++ b/platforms/test/rules.mk @@ -1,25 +1,25 @@ -eeprom_stm32_DEFS := -DEEPROM_TEST_HARNESS -DFLASH_STM32_MOCKED -DNO_PRINT -DFEE_FLASH_BASE=FlashBuf -eeprom_stm32_tiny_DEFS := $(eeprom_stm32_DEFS) \ +eeprom_legacy_emulated_flash_DEFS := -DEEPROM_TEST_HARNESS -DFLASH_STM32_MOCKED -DNO_PRINT -DFEE_FLASH_BASE=FlashBuf +eeprom_legacy_emulated_flash_tiny_DEFS := $(eeprom_legacy_emulated_flash_DEFS) \ -DFEE_MCU_FLASH_SIZE=1 \ -DMOCK_FLASH_SIZE=1024 \ -DFEE_PAGE_SIZE=512 \ -DFEE_PAGE_COUNT=1 -eeprom_stm32_large_DEFS := $(eeprom_stm32_DEFS) \ +eeprom_legacy_emulated_flash_large_DEFS := $(eeprom_legacy_emulated_flash_DEFS) \ -DFEE_MCU_FLASH_SIZE=64 \ -DMOCK_FLASH_SIZE=65536 \ -DFEE_PAGE_SIZE=2048 \ -DFEE_PAGE_COUNT=16 -eeprom_stm32_INC := \ +eeprom_legacy_emulated_flash_INC := \ $(PLATFORM_PATH)/chibios/drivers/eeprom/ \ $(PLATFORM_PATH)/chibios/drivers/flash/ -eeprom_stm32_tiny_INC := $(eeprom_stm32_INC) -eeprom_stm32_large_INC := $(eeprom_stm32_INC) +eeprom_legacy_emulated_flash_tiny_INC := $(eeprom_legacy_emulated_flash_INC) +eeprom_legacy_emulated_flash_large_INC := $(eeprom_legacy_emulated_flash_INC) -eeprom_stm32_SRC := \ +eeprom_legacy_emulated_flash_SRC := \ $(TOP_DIR)/drivers/eeprom/eeprom_driver.c \ - $(PLATFORM_PATH)/$(PLATFORM_KEY)/eeprom_stm32_tests.cpp \ + $(PLATFORM_PATH)/$(PLATFORM_KEY)/eeprom_legacy_emulated_flash_tests.cpp \ $(PLATFORM_PATH)/$(PLATFORM_KEY)/flash_stm32_mock.c \ - $(PLATFORM_PATH)/chibios/drivers/eeprom/eeprom_stm32.c -eeprom_stm32_tiny_SRC := $(eeprom_stm32_SRC) -eeprom_stm32_large_SRC := $(eeprom_stm32_SRC) + $(PLATFORM_PATH)/chibios/drivers/eeprom/eeprom_legacy_emulated_flash.c +eeprom_legacy_emulated_flash_tiny_SRC := $(eeprom_legacy_emulated_flash_SRC) +eeprom_legacy_emulated_flash_large_SRC := $(eeprom_legacy_emulated_flash_SRC) diff --git a/platforms/test/testlist.mk b/platforms/test/testlist.mk index 51a9638bb968..b8ec68e7d387 100644 --- a/platforms/test/testlist.mk +++ b/platforms/test/testlist.mk @@ -1 +1 @@ -TEST_LIST += eeprom_stm32_tiny eeprom_stm32_large +TEST_LIST += eeprom_legacy_emulated_flash_tiny eeprom_legacy_emulated_flash_large From 8fd3a88fcb5f7d2fdbfb22cb28b7fd161b1477d3 Mon Sep 17 00:00:00 2001 From: Nick Brassel Date: Sun, 6 Nov 2022 12:18:56 +1100 Subject: [PATCH 2/4] Rename `flash_stm32` to `legacy_flash_ops`. --- builddefs/common_features.mk | 4 ++-- .../chibios/drivers/eeprom/eeprom_legacy_emulated_flash.c | 2 +- .../drivers/flash/{flash_stm32.c => legacy_flash_ops.c} | 2 +- .../drivers/flash/{flash_stm32.h => legacy_flash_ops.h} | 2 +- .../chibios/drivers/wear_leveling/wear_leveling_legacy.c | 2 +- platforms/eeprom.h | 2 +- platforms/test/eeprom_legacy_emulated_flash_tests.h | 2 +- .../test/{flash_stm32_mock.c => legacy_flash_ops_mock.c} | 2 +- platforms/test/rules.mk | 4 ++-- 9 files changed, 11 insertions(+), 11 deletions(-) rename platforms/chibios/drivers/flash/{flash_stm32.c => legacy_flash_ops.c} (99%) rename platforms/chibios/drivers/flash/{flash_stm32.h => legacy_flash_ops.h} (97%) rename platforms/test/{flash_stm32_mock.c => legacy_flash_ops_mock.c} (98%) diff --git a/builddefs/common_features.mk b/builddefs/common_features.mk index 83ea7ae85bb1..7ed3aae22deb 100644 --- a/builddefs/common_features.mk +++ b/builddefs/common_features.mk @@ -219,7 +219,7 @@ else OPT_DEFS += -DEEPROM_DRIVER -DEEPROM_LEGACY_EMULATED_FLASH COMMON_VPATH += $(PLATFORM_PATH)/$(PLATFORM_KEY)/$(DRIVER_DIR)/flash COMMON_VPATH += $(DRIVER_PATH)/flash - SRC += eeprom_driver.c eeprom_legacy_emulated_flash.c flash_stm32.c + SRC += eeprom_driver.c eeprom_legacy_emulated_flash.c legacy_flash_ops.c else ifneq ($(filter $(MCU_SERIES),STM32L0xx STM32L1xx),) # True EEPROM on STM32L0xx, L1xx OPT_DEFS += -DEEPROM_DRIVER -DEEPROM_STM32_L0_L1 @@ -276,7 +276,7 @@ ifneq ($(strip $(WEAR_LEVELING_DRIVER)),none) POST_CONFIG_H += $(PLATFORM_PATH)/$(PLATFORM_KEY)/$(DRIVER_PATH)/wear_leveling/wear_leveling_rp2040_flash_config.h else ifeq ($(strip $(WEAR_LEVELING_DRIVER)), legacy) COMMON_VPATH += $(PLATFORM_PATH)/$(PLATFORM_KEY)/$(DRIVER_DIR)/flash - SRC += flash_stm32.c wear_leveling_legacy.c + SRC += legacy_flash_ops.c wear_leveling_legacy.c POST_CONFIG_H += $(PLATFORM_PATH)/$(PLATFORM_KEY)/$(DRIVER_DIR)/wear_leveling/wear_leveling_legacy_config.h endif endif diff --git a/platforms/chibios/drivers/eeprom/eeprom_legacy_emulated_flash.c b/platforms/chibios/drivers/eeprom/eeprom_legacy_emulated_flash.c index 3c9506c8bbb7..a81fe3353c63 100644 --- a/platforms/chibios/drivers/eeprom/eeprom_legacy_emulated_flash.c +++ b/platforms/chibios/drivers/eeprom/eeprom_legacy_emulated_flash.c @@ -23,7 +23,7 @@ #include "util.h" #include "debug.h" #include "eeprom_legacy_emulated_flash.h" -#include "flash_stm32.h" +#include "legacy_flash_ops.h" /* * We emulate eeprom by writing a snapshot compacted view of eeprom contents, diff --git a/platforms/chibios/drivers/flash/flash_stm32.c b/platforms/chibios/drivers/flash/legacy_flash_ops.c similarity index 99% rename from platforms/chibios/drivers/flash/flash_stm32.c rename to platforms/chibios/drivers/flash/legacy_flash_ops.c index 72c41b8b784d..fe5ad64764f4 100644 --- a/platforms/chibios/drivers/flash/flash_stm32.c +++ b/platforms/chibios/drivers/flash/legacy_flash_ops.c @@ -17,7 +17,7 @@ */ #include -#include "flash_stm32.h" +#include "legacy_flash_ops.h" #if defined(STM32F1XX) # define FLASH_SR_WRPERR FLASH_SR_WRPRTERR diff --git a/platforms/chibios/drivers/flash/flash_stm32.h b/platforms/chibios/drivers/flash/legacy_flash_ops.h similarity index 97% rename from platforms/chibios/drivers/flash/flash_stm32.h rename to platforms/chibios/drivers/flash/legacy_flash_ops.h index 6c66642ec5c7..ef8076405527 100644 --- a/platforms/chibios/drivers/flash/flash_stm32.h +++ b/platforms/chibios/drivers/flash/legacy_flash_ops.h @@ -24,7 +24,7 @@ extern "C" { #include -#ifdef FLASH_STM32_MOCKED +#ifdef LEGACY_FLASH_OPS_MOCKED extern uint8_t FlashBuf[MOCK_FLASH_SIZE]; #endif diff --git a/platforms/chibios/drivers/wear_leveling/wear_leveling_legacy.c b/platforms/chibios/drivers/wear_leveling/wear_leveling_legacy.c index 87126c44672b..7c6fd2d808fe 100644 --- a/platforms/chibios/drivers/wear_leveling/wear_leveling_legacy.c +++ b/platforms/chibios/drivers/wear_leveling/wear_leveling_legacy.c @@ -5,7 +5,7 @@ #include "timer.h" #include "wear_leveling.h" #include "wear_leveling_internal.h" -#include "flash_stm32.h" +#include "legacy_flash_ops.h" bool backing_store_init(void) { bs_dprintf("Init\n"); diff --git a/platforms/eeprom.h b/platforms/eeprom.h index 2b2d2620c27f..4e65dc0295cf 100644 --- a/platforms/eeprom.h +++ b/platforms/eeprom.h @@ -59,7 +59,7 @@ void eeprom_update_block(const void *__src, void *__dst, size_t __n); #elif defined(__AVR_AT90USB1286__) || defined(__AVR_AT90USB1287__) # define TOTAL_EEPROM_BYTE_COUNT 4096 #elif defined(EEPROM_TEST_HARNESS) -# ifndef FLASH_STM32_MOCKED +# ifndef LEGACY_FLASH_OPS_MOCKED // Normal tests # define TOTAL_EEPROM_BYTE_COUNT 32 # else diff --git a/platforms/test/eeprom_legacy_emulated_flash_tests.h b/platforms/test/eeprom_legacy_emulated_flash_tests.h index 60e863b4543b..467ec96d74df 100644 --- a/platforms/test/eeprom_legacy_emulated_flash_tests.h +++ b/platforms/test/eeprom_legacy_emulated_flash_tests.h @@ -2,7 +2,7 @@ // SPDX-License-Identifier: GPL-2.0-or-later #pragma once -#include "flash_stm32.h" +#include "legacy_flash_ops.h" #include "eeprom_legacy_emulated_flash.h" #define EEPROM_SIZE (FEE_PAGE_SIZE * FEE_PAGE_COUNT / 2) diff --git a/platforms/test/flash_stm32_mock.c b/platforms/test/legacy_flash_ops_mock.c similarity index 98% rename from platforms/test/flash_stm32_mock.c rename to platforms/test/legacy_flash_ops_mock.c index b6ab170f9525..b9d805cb47c8 100644 --- a/platforms/test/flash_stm32_mock.c +++ b/platforms/test/legacy_flash_ops_mock.c @@ -16,7 +16,7 @@ #include #include -#include "flash_stm32.h" +#include "legacy_flash_ops.h" uint8_t FlashBuf[MOCK_FLASH_SIZE] = {0}; diff --git a/platforms/test/rules.mk b/platforms/test/rules.mk index 529888e78f32..43898db07eb4 100644 --- a/platforms/test/rules.mk +++ b/platforms/test/rules.mk @@ -1,4 +1,4 @@ -eeprom_legacy_emulated_flash_DEFS := -DEEPROM_TEST_HARNESS -DFLASH_STM32_MOCKED -DNO_PRINT -DFEE_FLASH_BASE=FlashBuf +eeprom_legacy_emulated_flash_DEFS := -DEEPROM_TEST_HARNESS -DLEGACY_FLASH_OPS_MOCKED -DNO_PRINT -DFEE_FLASH_BASE=FlashBuf eeprom_legacy_emulated_flash_tiny_DEFS := $(eeprom_legacy_emulated_flash_DEFS) \ -DFEE_MCU_FLASH_SIZE=1 \ -DMOCK_FLASH_SIZE=1024 \ @@ -19,7 +19,7 @@ eeprom_legacy_emulated_flash_large_INC := $(eeprom_legacy_emulated_flash_INC) eeprom_legacy_emulated_flash_SRC := \ $(TOP_DIR)/drivers/eeprom/eeprom_driver.c \ $(PLATFORM_PATH)/$(PLATFORM_KEY)/eeprom_legacy_emulated_flash_tests.cpp \ - $(PLATFORM_PATH)/$(PLATFORM_KEY)/flash_stm32_mock.c \ + $(PLATFORM_PATH)/$(PLATFORM_KEY)/legacy_flash_ops_mock.c \ $(PLATFORM_PATH)/chibios/drivers/eeprom/eeprom_legacy_emulated_flash.c eeprom_legacy_emulated_flash_tiny_SRC := $(eeprom_legacy_emulated_flash_SRC) eeprom_legacy_emulated_flash_large_SRC := $(eeprom_legacy_emulated_flash_SRC) From 0b16159a6ee3333a59c03fbbb339e1163acc5eab Mon Sep 17 00:00:00 2001 From: Nick Brassel Date: Sun, 6 Nov 2022 12:18:56 +1100 Subject: [PATCH 3/4] Rename `eeprom_teensy` to `eeprom_kinetis_flexram`. --- builddefs/common_features.mk | 4 ++-- keyboards/input_club/ergodox_infinity/ergodox_infinity.c | 2 +- keyboards/input_club/k_type/k_type.c | 2 +- keyboards/input_club/whitefox/whitefox.c | 2 +- .../eeprom/{eeprom_teensy.c => eeprom_kinetis_flexram.c} | 2 +- .../eeprom/{eeprom_teensy.h => eeprom_kinetis_flexram.h} | 0 platforms/eeprom.h | 4 ++-- 7 files changed, 8 insertions(+), 8 deletions(-) rename platforms/chibios/drivers/eeprom/{eeprom_teensy.c => eeprom_kinetis_flexram.c} (99%) rename platforms/chibios/drivers/eeprom/{eeprom_teensy.h => eeprom_kinetis_flexram.h} (100%) diff --git a/builddefs/common_features.mk b/builddefs/common_features.mk index 7ed3aae22deb..4515413742f7 100644 --- a/builddefs/common_features.mk +++ b/builddefs/common_features.mk @@ -231,8 +231,8 @@ else WEAR_LEVELING_DRIVER = rp2040_flash else ifneq ($(filter $(MCU_SERIES),KL2x K20x),) # Teensy EEPROM implementations - OPT_DEFS += -DEEPROM_TEENSY - SRC += eeprom_teensy.c + OPT_DEFS += -DEEPROM_KINETIS_FLEXRAM + SRC += eeprom_kinetis_flexram.c else # Fall back to transient, i.e. non-persistent OPT_DEFS += -DEEPROM_DRIVER -DEEPROM_TRANSIENT diff --git a/keyboards/input_club/ergodox_infinity/ergodox_infinity.c b/keyboards/input_club/ergodox_infinity/ergodox_infinity.c index d699d763335e..9ed3162d00d2 100644 --- a/keyboards/input_club/ergodox_infinity/ergodox_infinity.c +++ b/keyboards/input_club/ergodox_infinity/ergodox_infinity.c @@ -114,7 +114,7 @@ void matrix_init_kb(void) { #ifdef LED_MATRIX_ENABLE /* - * Since K20x is stuck with a 32 byte EEPROM (see tmk_core/common/chibios/eeprom_teensy.c), + * Since K20x is stuck with a 32 byte EEPROM (see tmk_core/common/chibios/eeprom_kinetis_flexram.c), * and neither led_matrix_eeconfig.speed or .flags fit in this boundary, just force their values to default on boot. */ # if !defined(LED_MATRIX_STARTUP_SPD) diff --git a/keyboards/input_club/k_type/k_type.c b/keyboards/input_club/k_type/k_type.c index 3f67b4b10d7e..509e241ba109 100644 --- a/keyboards/input_club/k_type/k_type.c +++ b/keyboards/input_club/k_type/k_type.c @@ -221,7 +221,7 @@ void matrix_init_kb(void) { #ifdef RGB_MATRIX_ENABLE /* - * Since K20x is stuck with a 32 byte EEPROM (see tmk_core/common/chibios/eeprom_teensy.c), + * Since K20x is stuck with a 32 byte EEPROM (see tmk_core/common/chibios/eeprom_kinetis_flexram.c), * and neither led_matrix_eeconfig.speed or .flags fit in this boundary, just force their values to default on boot. */ # if !defined(RGB_MATRIX_STARTUP_SPD) diff --git a/keyboards/input_club/whitefox/whitefox.c b/keyboards/input_club/whitefox/whitefox.c index 8d92aa8d2fd9..7bd34a8537f7 100644 --- a/keyboards/input_club/whitefox/whitefox.c +++ b/keyboards/input_club/whitefox/whitefox.c @@ -80,7 +80,7 @@ void matrix_init_kb(void) { #ifdef LED_MATRIX_ENABLE /* - * Since K20x is stuck with a 32 byte EEPROM (see tmk_core/common/chibios/eeprom_teensy.c), + * Since K20x is stuck with a 32 byte EEPROM (see tmk_core/common/chibios/eeprom_kinetis_flexram.c), * and neither led_matrix_eeconfig.speed or .flags fit in this boundary, just force their values to default on boot. */ # if !defined(LED_MATRIX_STARTUP_SPD) diff --git a/platforms/chibios/drivers/eeprom/eeprom_teensy.c b/platforms/chibios/drivers/eeprom/eeprom_kinetis_flexram.c similarity index 99% rename from platforms/chibios/drivers/eeprom/eeprom_teensy.c rename to platforms/chibios/drivers/eeprom/eeprom_kinetis_flexram.c index c8777febde3a..6468cbf3fa7f 100644 --- a/platforms/chibios/drivers/eeprom/eeprom_teensy.c +++ b/platforms/chibios/drivers/eeprom/eeprom_kinetis_flexram.c @@ -1,7 +1,7 @@ #include #include -#include "eeprom_teensy.h" +#include "eeprom_kinetis_flexram.h" #include "eeconfig.h" /*************************************/ diff --git a/platforms/chibios/drivers/eeprom/eeprom_teensy.h b/platforms/chibios/drivers/eeprom/eeprom_kinetis_flexram.h similarity index 100% rename from platforms/chibios/drivers/eeprom/eeprom_teensy.h rename to platforms/chibios/drivers/eeprom/eeprom_kinetis_flexram.h diff --git a/platforms/eeprom.h b/platforms/eeprom.h index 4e65dc0295cf..fbfef2033418 100644 --- a/platforms/eeprom.h +++ b/platforms/eeprom.h @@ -41,8 +41,8 @@ void eeprom_update_block(const void *__src, void *__dst, size_t __n); #elif defined(EEPROM_STM32_L0_L1) # include "eeprom_stm32_L0_L1.h" # define TOTAL_EEPROM_BYTE_COUNT (STM32_ONBOARD_EEPROM_SIZE) -#elif defined(EEPROM_TEENSY) -# include "eeprom_teensy.h" +#elif defined(EEPROM_KINETIS_FLEXRAM) +# include "eeprom_kinetis_flexram.h" # define TOTAL_EEPROM_BYTE_COUNT (EEPROM_SIZE) #elif defined(EEPROM_LEGACY_EMULATED_FLASH) # include "eeprom_legacy_emulated_flash_defs.h" From 40f0afb0f03fc29a0155103b72bcd0bb8efa98e3 Mon Sep 17 00:00:00 2001 From: Nick Brassel Date: Wed, 23 Nov 2022 18:31:12 +1100 Subject: [PATCH 4/4] Rollback keyboards. --- keyboards/input_club/ergodox_infinity/ergodox_infinity.c | 2 +- keyboards/input_club/k_type/k_type.c | 2 +- keyboards/input_club/whitefox/whitefox.c | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/keyboards/input_club/ergodox_infinity/ergodox_infinity.c b/keyboards/input_club/ergodox_infinity/ergodox_infinity.c index 9ed3162d00d2..d699d763335e 100644 --- a/keyboards/input_club/ergodox_infinity/ergodox_infinity.c +++ b/keyboards/input_club/ergodox_infinity/ergodox_infinity.c @@ -114,7 +114,7 @@ void matrix_init_kb(void) { #ifdef LED_MATRIX_ENABLE /* - * Since K20x is stuck with a 32 byte EEPROM (see tmk_core/common/chibios/eeprom_kinetis_flexram.c), + * Since K20x is stuck with a 32 byte EEPROM (see tmk_core/common/chibios/eeprom_teensy.c), * and neither led_matrix_eeconfig.speed or .flags fit in this boundary, just force their values to default on boot. */ # if !defined(LED_MATRIX_STARTUP_SPD) diff --git a/keyboards/input_club/k_type/k_type.c b/keyboards/input_club/k_type/k_type.c index 509e241ba109..3f67b4b10d7e 100644 --- a/keyboards/input_club/k_type/k_type.c +++ b/keyboards/input_club/k_type/k_type.c @@ -221,7 +221,7 @@ void matrix_init_kb(void) { #ifdef RGB_MATRIX_ENABLE /* - * Since K20x is stuck with a 32 byte EEPROM (see tmk_core/common/chibios/eeprom_kinetis_flexram.c), + * Since K20x is stuck with a 32 byte EEPROM (see tmk_core/common/chibios/eeprom_teensy.c), * and neither led_matrix_eeconfig.speed or .flags fit in this boundary, just force their values to default on boot. */ # if !defined(RGB_MATRIX_STARTUP_SPD) diff --git a/keyboards/input_club/whitefox/whitefox.c b/keyboards/input_club/whitefox/whitefox.c index 7bd34a8537f7..8d92aa8d2fd9 100644 --- a/keyboards/input_club/whitefox/whitefox.c +++ b/keyboards/input_club/whitefox/whitefox.c @@ -80,7 +80,7 @@ void matrix_init_kb(void) { #ifdef LED_MATRIX_ENABLE /* - * Since K20x is stuck with a 32 byte EEPROM (see tmk_core/common/chibios/eeprom_kinetis_flexram.c), + * Since K20x is stuck with a 32 byte EEPROM (see tmk_core/common/chibios/eeprom_teensy.c), * and neither led_matrix_eeconfig.speed or .flags fit in this boundary, just force their values to default on boot. */ # if !defined(LED_MATRIX_STARTUP_SPD)