Add STM32F1 support for SD-based EEPROM

This commit is contained in:
Scott Lahteine
2018-07-06 22:32:15 -05:00
parent 63f4c9bdb9
commit d05e832f29
8 changed files with 29 additions and 44 deletions

View File

@ -11,14 +11,12 @@ extern void eeprom_flush(void);
namespace HAL {
namespace PersistentStore {
bool access_start() {
return true;
}
bool access_start() { return true; }
bool access_finish(){
#if DISABLED(I2C_EEPROM) && DISABLED(SPI_EEPROM)
eeprom_flush();
#endif
bool access_finish() {
#if DISABLED(I2C_EEPROM) && DISABLED(SPI_EEPROM)
eeprom_flush();
#endif
return true;
}