More explicit EEPROM types (#17127)

This commit is contained in:
Scott Lahteine
2020-03-11 16:41:18 -05:00
committed by GitHub
parent 924fa6045c
commit 112245ee48
18 changed files with 92 additions and 60 deletions

View File

@ -28,7 +28,7 @@
// Print debug messages with M111 S2
//#define DEBUG_PRINTCOUNTER
#if EITHER(I2C_EEPROM, SPI_EEPROM)
#if USE_REAL_EEPROM
// round up address to next page boundary (assuming 32 byte pages)
#define STATS_EEPROM_ADDRESS 0x40
#else
@ -57,7 +57,7 @@ class PrintCounter: public Stopwatch {
private:
typedef Stopwatch super;
#if EITHER(I2C_EEPROM, SPI_EEPROM) || defined(CPU_32_BIT)
#if USE_REAL_EEPROM || defined(CPU_32_BIT)
typedef uint32_t eeprom_address_t;
#else
typedef uint16_t eeprom_address_t;