1
0
mirror of https://github.com/jscrane/r65emu.git synced 2025-01-10 03:29:30 +00:00
This commit is contained in:
Stephen Crane 2018-11-08 07:42:03 +00:00
parent a8e6f24e03
commit e0df78f602
5 changed files with 57 additions and 8 deletions

View File

@ -10,6 +10,8 @@
#include "hw/esp32-utft-dac.h"
#elif defined(ESP8266)
#include "hw/esp8266-pwm.h"
#elif defined(LM4F)
#include "hw/lm4f-utft-sd.h"
#endif
bool hardware_reset();

28
hw/esp32-espi-dac.h Normal file
View File

@ -0,0 +1,28 @@
// TFT display...
#define USE_ESPI
//#define USER_SETUP_LOADED
//#define ILI9163_DRIVER
//#define TFT_CS 5
//#define TFT_DC 2
//#define TFT_MOSI 23
//#define TFT_MISO -1
//#define TFT_SCLK 18
//#define TFT_RST -1
//#define SPI_FREQUENCY 40000000
//#define LOAD_GLCD
// PS/2 keyboard
#define KBD_DATA 34
#define KBD_IRQ 35
// SPI-RAM
#undef SPIRAM_CS
// "tape" storage...
#undef SD_CS
#define USE_SPIFFS
// sound: dac and pwm
#define DAC_SOUND 25
#define PWM_SOUND 25
#define PWM_DUTY 20 // 20/1024 -> volume

View File

@ -1,7 +1,3 @@
/*
* esp32-utft-dac.h
*/
// TFT display...
#define USE_UTFT
#undef TFT_BACKLIGHT

View File

@ -1,8 +1,6 @@
/*
* esp8266-pwm.h
*/
// TFT display...
#define USE_ESPI
//must define these in Makefile (or platformio)
//#define USER_SETUP_LOADED
//#define ILI9163_DRIVER
//#define TFT_CS 5

25
hw/lm4f-utft-sd.h Normal file
View File

@ -0,0 +1,25 @@
// TFT display...
// NOTE: edit memorysaver.h to select the correct chip for your display!
// Daniel Rebollo's boosterpack
#define TFT_BACKLIGHT PD_6
#define TFT_MODEL SSD1289
#define TFT_RS PC_6
#define TFT_WR PC_5
#define TFT_CS PC_7
#define TFT_RST PC_4
// PS/2 keyboard
#define KBD_DATA PE_4
#define KBD_IRQ PE_5
// SPI-RAM
#define SPIRAM_CS PE_0
#define SPIRAM_SPI 1
#define SPIRAM_DEV SPI_for_SD
#define SPIRAM_SIZE 65536
// "tape" storage...
#define SD_CS PF_3
#define SD_SPI 1
#define SPI_CS PF_3