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 #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> #include <SPI.h>
using MarlinSPI = SPIClass; using MarlinSPI = SPIClass;

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

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

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

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

Loading…
Cancel
Save