STM32F1: SD EEPROM fallback (#17715)

This commit is contained in:
Jason Smith
2020-04-27 21:45:20 -07:00
committed by GitHub
parent 9fa5119333
commit f709c565a1
7 changed files with 50 additions and 38 deletions

View File

@ -22,6 +22,6 @@
#pragma once
// If no real EEPROM, Flash emulation, or SRAM emulation is available fall back to SD emulation
#if ENABLED(EEPROM_SETTINGS) && NONE(USE_WIRED_EEPROM, FLASH_EEPROM_EMULATION, SRAM_EEPROM_EMULATION)
#if USE_FALLBACK_EEPROM
#define SDCARD_EEPROM_EMULATION
#endif

View File

@ -35,3 +35,11 @@
#if ENABLED(FAST_PWM_FAN)
#error "FAST_PWM_FAN is not yet implemented for this platform."
#endif
#if ENABLED(SDCARD_EEPROM_EMULATION) && DISABLED(SDSUPPORT)
#undef SDCARD_EEPROM_EMULATION // Avoid additional error noise
#if USE_FALLBACK_EEPROM
#warning "EEPROM type not specified. Fallback is SDCARD_EEPROM_EMULATION."
#endif
#error "SDCARD_EEPROM_EMULATION requires SDSUPPORT. Enable SDSUPPORT or choose another EEPROM emulation."
#endif