LPC1768 EEPROM fallback to flash, add overrides (#17184)
This commit is contained in:
		@@ -21,10 +21,6 @@
 | 
			
		||||
 */
 | 
			
		||||
#pragma once
 | 
			
		||||
 | 
			
		||||
#if ENABLED(EEPROM_SETTINGS)
 | 
			
		||||
  #undef USE_REAL_EEPROM
 | 
			
		||||
  #define USE_EMULATED_EEPROM 1
 | 
			
		||||
  #if DISABLED(FLASH_EEPROM_EMULATION)
 | 
			
		||||
    #define SDCARD_EEPROM_EMULATION 1
 | 
			
		||||
  #endif
 | 
			
		||||
#if USE_EMULATED_EEPROM && NONE(SDCARD_EEPROM_EMULATION, SRAM_EEPROM_EMULATION)
 | 
			
		||||
  #define FLASH_EEPROM_EMULATION
 | 
			
		||||
#endif
 | 
			
		||||
 
 | 
			
		||||
@@ -36,12 +36,11 @@
 | 
			
		||||
 * 16Kb I/O buffers (intended to hold DMA USB and Ethernet data, but currently
 | 
			
		||||
 * unused).
 | 
			
		||||
 */
 | 
			
		||||
#include "../../inc/MarlinConfigPre.h"
 | 
			
		||||
#include "../../inc/MarlinConfig.h"
 | 
			
		||||
 | 
			
		||||
#if ENABLED(FLASH_EEPROM_EMULATION)
 | 
			
		||||
 | 
			
		||||
#include "persistent_store_api.h"
 | 
			
		||||
#include "../../inc/MarlinConfig.h"
 | 
			
		||||
 | 
			
		||||
extern "C" {
 | 
			
		||||
  #include <lpc17xx_iap.h>
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user