1
0
mirror of https://github.com/jscrane/r65emu.git synced 2024-06-18 14:29:32 +00:00

add hw/user.h

This commit is contained in:
Stephen Crane 2021-02-27 13:32:49 +00:00
parent 55928d498a
commit 32b1bf11f5
3 changed files with 19 additions and 2 deletions

View File

@ -7,7 +7,7 @@
#if defined(HARDWARE_H)
#include HARDWARE_H
#else
#pragma error "define HARDWARE_H"
#include "hw/user.h"
#endif
bool hardware_reset();

17
hw/user.h Normal file
View File

@ -0,0 +1,17 @@
#if defined(ESP32)
// #include <hw/esp32-espi.h>
// #include <hw/esp32-espi-dac.h>
// #include <hw/esp32-espi-spiffs.h>
#elif defined(ESP8266)
// #include <hw/esp8266-pwm.h>
// #include <hw/esp8266-pwm-sd.h>
#include <hw/esp8266-pwm-fs.h>
// #include <hw/esp8266-pwm-fs-23k256.h>
#elif defined(LM4F)
// #include <hw/lm4f-utft.h>
// #include <hw/lm4f-utft-sd.h>
#endif

View File

@ -15,7 +15,7 @@
static UTFT utft(TFT_MODEL, TFT_RS, TFT_WR, TFT_CS, TFT_RST, TFT_SER);
#elif defined(USE_ESPI)
#pragma message "Configure TFT_eSPI in Makefile or User_Setup.h"
#pragma message "Configure TFT_eSPI in Makefile or <TFT_eSPI/User_Setup.h>"
#include <TFT_eSPI.h>
static TFT_eSPI espi;