浏览代码

EEPROM Flash Leveling enabled for more STM32F4 (#17948)

Jason Smith 5 年前
父节点
当前提交
4680aa659c
没有帐户链接到提交者的电子邮件

+ 6
- 0
Marlin/src/pins/stm32f4/pins_BTT_BTT002_V1_0.h 查看文件

35
   #define FLASH_EEPROM_EMULATION                  // Use Flash-based EEPROM emulation
35
   #define FLASH_EEPROM_EMULATION                  // Use Flash-based EEPROM emulation
36
 #endif
36
 #endif
37
 
37
 
38
+#if ENABLED(FLASH_EEPROM_EMULATION)
39
+  // Decrease delays and flash wear by spreading writes across the
40
+  // 128 kB sector allocated for EEPROM emulation.
41
+  #define FLASH_EEPROM_LEVELING
42
+#endif
43
+
38
 // Ignore temp readings during development.
44
 // Ignore temp readings during development.
39
 //#define BOGUS_TEMPERATURE_GRACE_PERIOD 2000
45
 //#define BOGUS_TEMPERATURE_GRACE_PERIOD 2000
40
 
46
 

+ 6
- 0
Marlin/src/pins/stm32f4/pins_BTT_GTR_V1_0.h 查看文件

38
   //#define FLASH_EEPROM_EMULATION                // Use Flash-based EEPROM emulation
38
   //#define FLASH_EEPROM_EMULATION                // Use Flash-based EEPROM emulation
39
 #endif
39
 #endif
40
 
40
 
41
+#if ENABLED(FLASH_EEPROM_EMULATION)
42
+  // Decrease delays and flash wear by spreading writes across the
43
+  // 128 kB sector allocated for EEPROM emulation.
44
+  #define FLASH_EEPROM_LEVELING
45
+#endif
46
+
41
 #define TP                                        // Enable to define servo and probe pins
47
 #define TP                                        // Enable to define servo and probe pins
42
 
48
 
43
 //
49
 //

+ 6
- 0
Marlin/src/pins/stm32f4/pins_BTT_SKR_PRO_V1_1.h 查看文件

35
   #define FLASH_EEPROM_EMULATION                  // Use Flash-based EEPROM emulation
35
   #define FLASH_EEPROM_EMULATION                  // Use Flash-based EEPROM emulation
36
 #endif
36
 #endif
37
 
37
 
38
+#if ENABLED(FLASH_EEPROM_EMULATION)
39
+  // Decrease delays and flash wear by spreading writes across the
40
+  // 128 kB sector allocated for EEPROM emulation.
41
+  #define FLASH_EEPROM_LEVELING
42
+#endif
43
+
38
 //
44
 //
39
 // Servos
45
 // Servos
40
 //
46
 //

+ 2
- 0
Marlin/src/pins/stm32f4/pins_FYSETC_S6.h 查看文件

47
 #endif
47
 #endif
48
 
48
 
49
 #if ENABLED(FLASH_EEPROM_EMULATION)
49
 #if ENABLED(FLASH_EEPROM_EMULATION)
50
+  // Decrease delays and flash wear by spreading writes across the
51
+  // 128 kB sector allocated for EEPROM emulation.
50
   #define FLASH_EEPROM_LEVELING
52
   #define FLASH_EEPROM_LEVELING
51
 #elif ENABLED(I2C_EEPROM)
53
 #elif ENABLED(I2C_EEPROM)
52
   #undef E2END                                    // Defined in Arduino Core STM32 to be used with EEPROM emulation. This board uses a real EEPROM.
54
   #undef E2END                                    // Defined in Arduino Core STM32 to be used with EEPROM emulation. This board uses a real EEPROM.

正在加载...
取消
保存