Skip to content

Commit

Permalink
Rename eeprom_teensy to eeprom_kinetis_flexram.
Browse files Browse the repository at this point in the history
  • Loading branch information
tzarc committed Nov 6, 2022
1 parent 8fd3a88 commit 0b16159
Show file tree
Hide file tree
Showing 7 changed files with 8 additions and 8 deletions.
4 changes: 2 additions & 2 deletions builddefs/common_features.mk
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion keyboards/input_club/ergodox_infinity/ergodox_infinity.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
2 changes: 1 addition & 1 deletion keyboards/input_club/k_type/k_type.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
2 changes: 1 addition & 1 deletion keyboards/input_club/whitefox/whitefox.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#include <ch.h>
#include <hal.h>

#include "eeprom_teensy.h"
#include "eeprom_kinetis_flexram.h"
#include "eeconfig.h"

/*************************************/
Expand Down
4 changes: 2 additions & 2 deletions platforms/eeprom.h
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit 0b16159

Please sign in to comment.