using sd_filer

This commit is contained in:
steve 2023-10-12 18:29:06 +01:00
parent f2abbe9dfd
commit c32c2b5098
2 changed files with 7 additions and 2 deletions

View File

@ -4,6 +4,7 @@
#include <r65emu.h> #include <r65emu.h>
#include <r6502.h> #include <r6502.h>
#include <pia.h> #include <pia.h>
#include <sd_filer.h>
#include "io.h" #include "io.h"
#include "config.h" #include "config.h"
@ -20,7 +21,11 @@ prom m(monitor, sizeof(monitor));
ram pages[RAM_PAGES]; ram pages[RAM_PAGES];
//socket_filer files("apple1"); //socket_filer files("apple1");
#if defined(USE_SD)
sd_filer files(PROGRAMS);
#else
flash_filer files(PROGRAMS); flash_filer files(PROGRAMS);
#endif
io io(files); io io(files);
r6502 cpu(memory); r6502 cpu(memory);

View File

@ -11,12 +11,12 @@ F_CPU := 80
CPPFLAGS = -DUSER_SETUP_LOADED -DILI9341_DRIVER -DTFT_CS=PIN_D8 -DTFT_DC=PIN_D1 \ CPPFLAGS = -DUSER_SETUP_LOADED -DILI9341_DRIVER -DTFT_CS=PIN_D8 -DTFT_DC=PIN_D1 \
-DTFT_RST=-1 -DSPI_FREQUENCY=40000000 -DLOAD_GLCD \ -DTFT_RST=-1 -DSPI_FREQUENCY=40000000 -DLOAD_GLCD \
-DHARDWARE_H=\"hw/esp8bit.h\" -DTERMINAL_SPEED=$(TERMINAL_SPEED) -DDEBUGGING=1 -DHARDWARE_H=\"hw/esp8bit.h\" -DTERMINAL_SPEED=$(TERMINAL_SPEED) -DDEBUGGING=1
LIBRARIES := TFT_eSPI SpiRAM LIBRARIES := TFT_eSPI SpiRAM LittleFS
endif endif
ifeq ($t, tivac) ifeq ($t, tivac)
BOARD := EK-LM4F120XL BOARD := EK-LM4F120XL
CPPFLAGS := -DDEBUGGING -DHARDWARE_H=\"hw/stellarpad-example.h\" -DTERMINAL_SPEED=$(TERMINAL_SPEED) CPPFLAGS := -DHARDWARE_H=\"hw/stellarpad-example.h\" -DTERMINAL_SPEED=$(TERMINAL_SPEED)
LIBRARIES := UTFT SD SpiRAM LIBRARIES := UTFT SD SpiRAM
endif endif