From 7a0af01e692ddcf2ee55800a035c2276c40bee7c Mon Sep 17 00:00:00 2001 From: Scott Lahteine Date: Mon, 13 Jul 2020 15:57:26 -0500 Subject: [PATCH] Creality V4 cleanup --- Marlin/src/pins/stm32f1/pins_CREALITY_V4.h | 38 ++++++++++++---------- 1 file changed, 21 insertions(+), 17 deletions(-) diff --git a/Marlin/src/pins/stm32f1/pins_CREALITY_V4.h b/Marlin/src/pins/stm32f1/pins_CREALITY_V4.h index b50be33079..2a7a212501 100644 --- a/Marlin/src/pins/stm32f1/pins_CREALITY_V4.h +++ b/Marlin/src/pins/stm32f1/pins_CREALITY_V4.h @@ -38,27 +38,31 @@ // // EEPROM // +#if NO_EEPROM_SELECTED + // FLASH + //#define FLASH_EEPROM_EMULATION -/* I2C */ -#define IIC_BL24CXX_EEPROM // EEPROM on I2C-0 -//#define E2END 0x3FFF // 16Kb (24c16) -#define IIC_EEPROM_SDA PA11 -#define IIC_EEPROM_SCL PA12 + // I2C + //#define IIC_BL24CXX_EEPROM // EEPROM on I2C-0 + #if ENABLED(IIC_BL24CXX_EEPROM) + #define IIC_EEPROM_SDA PA11 + #define IIC_EEPROM_SCL PA12 + #define MARLIN_EEPROM_SIZE 0x4000 // 16Kb (24c16) + #else + #define SDCARD_EEPROM_EMULATION // SD EEPROM was in the original build, so... + #endif -// SD EEPROM was in your original build, so... -#define SDCARD_EEPROM_EMULATION + // SPI + //#define SPI_EEPROM // EEPROM on SPI-0 + //#define SPI_CHAN_EEPROM1 ? + //#define SPI_EEPROM1_CS ? -/* SPI */ -//#define SPI_EEPROM // EEPROM on SPI-0 -//#define SPI_CHAN_EEPROM1 ? -//#define SPI_EEPROM1_CS ? -// 2K EEPROM -//#define SPI_EEPROM2_CS ? -// 32Mb FLASH -//#define SPI_FLASH_CS ? + // 2K EEPROM + //#define SPI_EEPROM2_CS ? -/* FLASH */ -//#define FLASH_EEPROM_EMULATION + // 32Mb FLASH + //#define SPI_FLASH_CS ? +#endif // // Servos