瀏覽代碼

Creality V4 cleanup

Scott Lahteine 4 年之前
父節點
當前提交
7a0af01e69
共有 1 個文件被更改,包括 25 次插入21 次删除
  1. 25
    21
      Marlin/src/pins/stm32f1/pins_CREALITY_V4.h

+ 25
- 21
Marlin/src/pins/stm32f1/pins_CREALITY_V4.h 查看文件

@@ -38,27 +38,31 @@
38 38
 //
39 39
 // EEPROM
40 40
 //
41
-
42
-/* I2C */
43
-#define IIC_BL24CXX_EEPROM                        // EEPROM on I2C-0
44
-//#define E2END 0x3FFF                            // 16Kb (24c16)
45
-#define IIC_EEPROM_SDA                      PA11
46
-#define IIC_EEPROM_SCL                      PA12
47
-
48
-// SD EEPROM was in your original build, so...
49
-#define SDCARD_EEPROM_EMULATION
50
-
51
-/* SPI */
52
-//#define SPI_EEPROM                              // EEPROM on SPI-0
53
-//#define SPI_CHAN_EEPROM1        ?
54
-//#define SPI_EEPROM1_CS          ?
55
-// 2K EEPROM
56
-//#define SPI_EEPROM2_CS          ?
57
-// 32Mb FLASH
58
-//#define SPI_FLASH_CS            ?
59
-
60
-/* FLASH */
61
-//#define FLASH_EEPROM_EMULATION
41
+#if NO_EEPROM_SELECTED
42
+  // FLASH
43
+  //#define FLASH_EEPROM_EMULATION
44
+
45
+  // I2C
46
+  //#define IIC_BL24CXX_EEPROM                    // EEPROM on I2C-0
47
+  #if ENABLED(IIC_BL24CXX_EEPROM)
48
+    #define IIC_EEPROM_SDA                  PA11
49
+    #define IIC_EEPROM_SCL                  PA12
50
+    #define MARLIN_EEPROM_SIZE 0x4000             // 16Kb (24c16)
51
+  #else
52
+    #define SDCARD_EEPROM_EMULATION               // SD EEPROM was in the original build, so...
53
+  #endif
54
+
55
+  // SPI
56
+  //#define SPI_EEPROM                            // EEPROM on SPI-0
57
+  //#define SPI_CHAN_EEPROM1  ?
58
+  //#define SPI_EEPROM1_CS    ?
59
+
60
+  // 2K EEPROM
61
+  //#define SPI_EEPROM2_CS    ?
62
+
63
+  // 32Mb FLASH
64
+  //#define SPI_FLASH_CS      ?
65
+#endif
62 66
 
63 67
 //
64 68
 // Servos

Loading…
取消
儲存