SPI cleanup

This commit is contained in:
Sergey
2021-10-13 16:50:10 +03:00
parent a0fd04f2ae
commit 393e9d2cf8
3 changed files with 1 additions and 16 deletions

View File

@@ -21,12 +21,6 @@
*/
#pragma once
//
// EEPROM
//
void eeprom_init();
void eeprom_write_byte(uint8_t *pos, uint8_t value);
uint8_t eeprom_read_byte(uint8_t *pos);
#include <SPI.h>
using MarlinSPI = SPIClass;

View File

@@ -38,12 +38,7 @@
#endif
size_t PersistentStore::capacity() { return MARLIN_EEPROM_SIZE; }
bool PersistentStore::access_finish() {
#if ENABLED(EEPROM_W25Q)
eeprom_hw_deinit();
#endif
return true;
}
bool PersistentStore::access_finish() { return true; }
bool PersistentStore::access_start() {
eeprom_init();

View File

@@ -21,10 +21,6 @@
*/
#pragma once
#include <SPI.h>
using MarlinSPI = SPIClass;
//
// EEPROM
//