diff --git a/hardware.h b/hardware.h index be96627..35e80b3 100644 --- a/hardware.h +++ b/hardware.h @@ -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(); diff --git a/hw/esp32-espi-dac.h b/hw/esp32-espi-dac.h new file mode 100644 index 0000000..40884f4 --- /dev/null +++ b/hw/esp32-espi-dac.h @@ -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 diff --git a/hw/esp32-utft-dac.h b/hw/esp32-utft-dac.h index f3d5a75..2c6ea4f 100644 --- a/hw/esp32-utft-dac.h +++ b/hw/esp32-utft-dac.h @@ -1,7 +1,3 @@ -/* - * esp32-utft-dac.h - */ - // TFT display... #define USE_UTFT #undef TFT_BACKLIGHT diff --git a/hw/esp8266-pwm.h b/hw/esp8266-pwm.h index d23fcf7..6b1f8ae 100644 --- a/hw/esp8266-pwm.h +++ b/hw/esp8266-pwm.h @@ -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 diff --git a/hw/lm4f-utft-sd.h b/hw/lm4f-utft-sd.h new file mode 100644 index 0000000..da34925 --- /dev/null +++ b/hw/lm4f-utft-sd.h @@ -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