Wear-leveling EEPROM drivers: embedded_flash
, spi_flash
, legacy
(#17376)
This commit is contained in:
parent
1204cbb7ea
commit
34e244cecf
15 changed files with 667 additions and 71 deletions
|
@ -27,6 +27,8 @@ void eeprom_update_block(const void *__src, void *__dst, size_t __n);
|
|||
# error EEPROM_SIZE has not been defined for custom driver.
|
||||
# endif
|
||||
# define TOTAL_EEPROM_BYTE_COUNT (EEPROM_SIZE)
|
||||
#elif defined(EEPROM_WEAR_LEVELING)
|
||||
# define TOTAL_EEPROM_BYTE_COUNT (WEAR_LEVELING_LOGICAL_SIZE)
|
||||
#elif defined(EEPROM_TRANSIENT)
|
||||
# include "eeprom_transient.h"
|
||||
# define TOTAL_EEPROM_BYTE_COUNT (TRANSIENT_EEPROM_SIZE)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue