summaryrefslogtreecommitdiff
path: root/platforms/eeprom.h
diff options
context:
space:
mode:
authorNick Brassel <nick@tzarc.org>2022-11-23 19:50:19 +1100
committerGitHub <noreply@github.com>2022-11-23 08:50:19 +0000
commitbebfdad795add9fbc8c6c1393d1b817d542474ed (patch)
tree1d09d181a2c6a3be74d3e9125f952afe0f1f5ab4 /platforms/eeprom.h
parentbfdc76181980545b18d9e4d909b62d09895bca9d (diff)
NVRAM refactor, phase 1. (#18969)
* Rename `eeprom_stm32` to `eeprom_legacy_emulated_flash`. * Rename `flash_stm32` to `legacy_flash_ops`. * Rename `eeprom_teensy` to `eeprom_kinetis_flexram`.
Diffstat (limited to 'platforms/eeprom.h')
-rw-r--r--platforms/eeprom.h12
1 files changed, 6 insertions, 6 deletions
diff --git a/platforms/eeprom.h b/platforms/eeprom.h
index 8cb7e342dc..fbfef20334 100644
--- a/platforms/eeprom.h
+++ b/platforms/eeprom.h
@@ -41,11 +41,11 @@ 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_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"
@@ -59,12 +59,12 @@ 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
// 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