Skip to content

Commit

Permalink
EEPROM Flash Leveling enabled for more STM32F4 (MarlinFirmware#17948)
Browse files Browse the repository at this point in the history
  • Loading branch information
sjasonsmith authored and Alexander Yasnogor committed Aug 7, 2020
1 parent 0afe2c1 commit 8571071
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 0 deletions.
6 changes: 6 additions & 0 deletions Marlin/src/pins/stm32f4/pins_BTT_BTT002_V1_0.h
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,12 @@
#define FLASH_EEPROM_EMULATION // Use Flash-based EEPROM emulation
#endif

#if ENABLED(FLASH_EEPROM_EMULATION)
// Decrease delays and flash wear by spreading writes across the
// 128 kB sector allocated for EEPROM emulation.
#define FLASH_EEPROM_LEVELING
#endif

// Ignore temp readings during development.
//#define BOGUS_TEMPERATURE_GRACE_PERIOD 2000

Expand Down
6 changes: 6 additions & 0 deletions Marlin/src/pins/stm32f4/pins_BTT_GTR_V1_0.h
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,12 @@
//#define FLASH_EEPROM_EMULATION // Use Flash-based EEPROM emulation
#endif

#if ENABLED(FLASH_EEPROM_EMULATION)
// Decrease delays and flash wear by spreading writes across the
// 128 kB sector allocated for EEPROM emulation.
#define FLASH_EEPROM_LEVELING
#endif

#define TP // Enable to define servo and probe pins

//
Expand Down
6 changes: 6 additions & 0 deletions Marlin/src/pins/stm32f4/pins_BTT_SKR_PRO_V1_1.h
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,12 @@
#define FLASH_EEPROM_EMULATION // Use Flash-based EEPROM emulation
#endif

#if ENABLED(FLASH_EEPROM_EMULATION)
// Decrease delays and flash wear by spreading writes across the
// 128 kB sector allocated for EEPROM emulation.
#define FLASH_EEPROM_LEVELING
#endif

//
// Servos
//
Expand Down
2 changes: 2 additions & 0 deletions Marlin/src/pins/stm32f4/pins_FYSETC_S6.h
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,8 @@
#endif

#if ENABLED(FLASH_EEPROM_EMULATION)
// Decrease delays and flash wear by spreading writes across the
// 128 kB sector allocated for EEPROM emulation.
#define FLASH_EEPROM_LEVELING
#elif ENABLED(I2C_EEPROM)
#undef E2END // Defined in Arduino Core STM32 to be used with EEPROM emulation. This board uses a real EEPROM.
Expand Down

0 comments on commit 8571071

Please sign in to comment.