mirror of
https://github.com/jscrane/r65emu.git
synced 2025-02-12 17:32:08 +00:00
cleanup
This commit is contained in:
parent
316405085b
commit
edd6247bc6
@ -31,10 +31,12 @@ bool hardware_reset() {
|
||||
#if defined(USE_SPIRAM)
|
||||
extern SPIClass SPIRAM_DEV;
|
||||
SPIRAM_DEV.begin();
|
||||
#if defined(SPIRAM_SPI)
|
||||
SPIRAM_DEV.setModule(SPIRAM_SPI);
|
||||
#if defined(SPIRAM_MODULE)
|
||||
SPIRAM_DEV.setModule(SPIRAM_MODULE);
|
||||
#endif
|
||||
#if defined(SPIRAM_CLKDIV)
|
||||
SPIRAM_DEV.setClockDivider(SPIRAM_CLKDIV);
|
||||
#endif
|
||||
SPIRAM_DEV.setClockDivider(1);
|
||||
SPIRAM_DEV.setDataMode(SPI_MODE0);
|
||||
#endif
|
||||
|
||||
|
@ -16,8 +16,9 @@
|
||||
// SPI-RAM
|
||||
#define USE_SPIRAM
|
||||
#define SPIRAM_CS PE_0
|
||||
#define SPIRAM_SPI 1
|
||||
#define SPIRAM_DEV SPI_for_SD
|
||||
#define SPIRAM_MODULE 1
|
||||
#define SPIRAM_CLKDIV 1
|
||||
#define SPIRAM_SIZE 65536
|
||||
|
||||
// "tape" storage...
|
||||
|
Loading…
x
Reference in New Issue
Block a user