mirror of
https://github.com/jscrane/Apple1.git
synced 2024-10-31 12:05:16 +00:00
add SpiRAM to LIBRARIES
This commit is contained in:
parent
acec380d1d
commit
a84005458f
38
Makefile
38
Makefile
@ -1,20 +1,20 @@
|
|||||||
BOARD := d1_mini
|
#BOARD := d1_mini
|
||||||
UPLOAD_SPEED := 921600
|
#UPLOAD_SPEED := 921600
|
||||||
SPIFFS_DIR := programs
|
#SPIFFS_DIR := programs
|
||||||
FLASH_SIZE := 4M1M
|
#FLASH_SIZE := 4M1M
|
||||||
BUILD_FCPU := 80000000L
|
#BUILD_FCPU := 80000000L
|
||||||
|
|
||||||
CPPFLAGS = -DUSER_SETUP_LOADED -DILI9341_DRIVER \
|
|
||||||
-DTFT_WIDTH=240 -DTFT_HEIGHT=320 \
|
|
||||||
-DTFT_CS=PIN_D6 -DTFT_DC=PIN_D8 \
|
|
||||||
-DTFT_RST=-1 -DSPI_FREQUENCY=40000000 -DLOAD_GLCD
|
|
||||||
LIBRARIES := TFT_eSPI
|
|
||||||
|
|
||||||
include arduino-esp.mk
|
|
||||||
|
|
||||||
#PROCESSOR_FAMILY := lm4f
|
|
||||||
#BOARD := lplm4f120h5qr
|
|
||||||
#CPPFLAGS := -DDEBUGGING -DHARDWARE_H=\"hw/lm4f-utft-sd.h\"
|
|
||||||
#LIBRARIES := UTFT SD
|
|
||||||
#
|
#
|
||||||
#include energia10.mk
|
#CPPFLAGS = -DUSER_SETUP_LOADED -DILI9341_DRIVER \
|
||||||
|
# -DTFT_WIDTH=240 -DTFT_HEIGHT=320 \
|
||||||
|
# -DTFT_CS=PIN_D6 -DTFT_DC=PIN_D8 \
|
||||||
|
# -DTFT_RST=-1 -DSPI_FREQUENCY=40000000 -DLOAD_GLCD
|
||||||
|
#LIBRARIES := TFT_eSPI
|
||||||
|
#
|
||||||
|
#include arduino-esp.mk
|
||||||
|
|
||||||
|
PROCESSOR_FAMILY := lm4f
|
||||||
|
BOARD := lplm4f120h5qr
|
||||||
|
CPPFLAGS := -DDEBUGGING -DHARDWARE_H=\"hw/lm4f-utft-sd.h\"
|
||||||
|
LIBRARIES := UTFT SD SpiRAM
|
||||||
|
|
||||||
|
include energia10.mk
|
||||||
|
@ -1,12 +1,7 @@
|
|||||||
#include <stdarg.h>
|
#include <stdarg.h>
|
||||||
#include <r65emu.h>
|
|
||||||
|
|
||||||
#include <SPI.h>
|
#include <SPI.h>
|
||||||
|
|
||||||
#if defined(SPIRAM_CS)
|
#include <r65emu.h>
|
||||||
#include <SpiRAM.h>
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#include <r6502.h>
|
#include <r6502.h>
|
||||||
|
|
||||||
#include "pia.h"
|
#include "pia.h"
|
||||||
@ -46,7 +41,7 @@ void setup() {
|
|||||||
for (unsigned i = 0; i < RAM_SIZE; i += 1024)
|
for (unsigned i = 0; i < RAM_SIZE; i += 1024)
|
||||||
memory.put(pages[i / 1024], i);
|
memory.put(pages[i / 1024], i);
|
||||||
|
|
||||||
#if defined(SPIRAM_CS)
|
#if defined(USE_SPIRAM)
|
||||||
memory.put(sram, SPIRAM_BASE, SPIRAM_EXTENT);
|
memory.put(sram, SPIRAM_BASE, SPIRAM_EXTENT);
|
||||||
#endif
|
#endif
|
||||||
memory.put(io, 0xd000);
|
memory.put(io, 0xd000);
|
||||||
|
2
config.h
2
config.h
@ -1,7 +1,7 @@
|
|||||||
#ifndef _CONFIG_H
|
#ifndef _CONFIG_H
|
||||||
#define _CONFIG_H
|
#define _CONFIG_H
|
||||||
|
|
||||||
#if defined(SPIRAM_CS)
|
#if defined(USE_SPIRAM)
|
||||||
#define RAM_SIZE 0x3000
|
#define RAM_SIZE 0x3000
|
||||||
#define SPIRAM_BASE 0x3000
|
#define SPIRAM_BASE 0x3000
|
||||||
#define SPIRAM_EXTENT (20 * 1024 / 256)
|
#define SPIRAM_EXTENT (20 * 1024 / 256)
|
||||||
|
Loading…
Reference in New Issue
Block a user