Browse Source

SPI cleanup

pull/51/head
Sergey 3 years ago
parent
commit
393e9d2cf8
  1. 6
      Marlin/src/HAL/NATIVE_SIM/MarlinSPI.h
  2. 7
      Marlin/src/HAL/STM32F1/eeprom_wired.cpp
  3. 4
      Marlin/src/HAL/shared/eeprom_if.h

6
Marlin/src/HAL/NATIVE_SIM/MarlinSPI.h

@ -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;

7
Marlin/src/HAL/STM32F1/eeprom_wired.cpp

@ -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();

4
Marlin/src/HAL/shared/eeprom_if.h

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

Loading…
Cancel
Save