1
0
mirror of https://github.com/jscrane/r65emu.git synced 2025-07-25 10:24:05 +00:00

cleanup disk

This commit is contained in:
Stephen Crane
2018-11-10 09:32:33 +00:00
parent 971f34f1b3
commit 67540df29f
7 changed files with 34 additions and 12 deletions

View File

@@ -2,7 +2,7 @@
#include <SPI.h>
#if defined(SD_CS)
#if defined(USE_SD)
#include <SD.h>
#endif
@@ -36,7 +36,7 @@ bool hardware_reset() {
SPIRAM_DEV.setDataMode(SPI_MODE0);
#endif
#if defined(SD_CS)
#if defined(USE_SD)
success = SD.begin(SD_CS, 2, SD_SPI);
pinMode(SPI_CS, OUTPUT); // without this, the SPI-RAM isn't seen
#endif
@@ -62,7 +62,7 @@ void hardware_init(CPU &cpu) {
pinMode(TFT_BACKLIGHT, OUTPUT);
#endif
#if defined(SD_CS)
#if defined(USE_SD)
pinMode(SD_CS, OUTPUT);
digitalWrite(SD_CS, HIGH);
#endif