2014-10-18 12:33:48 +01:00
|
|
|
/*
|
2018-08-10 11:13:45 +01:00
|
|
|
* The hardware configuration of the machine.
|
2014-10-18 12:33:48 +01:00
|
|
|
* (This should be the same for all emulated devices.)
|
|
|
|
*/
|
2014-11-10 14:16:45 +00:00
|
|
|
#ifndef __HARDWARE_H__
|
|
|
|
#define __HARDWARE_H__
|
2014-10-18 12:33:48 +01:00
|
|
|
|
|
|
|
// TFT display...
|
2018-08-10 13:36:41 +01:00
|
|
|
#undef TFT_BACKLIGHT
|
|
|
|
#define TFT_MODEL ILI9325C
|
|
|
|
#define TFT_RS 32
|
|
|
|
#define TFT_WR 33
|
2018-08-17 12:28:49 +01:00
|
|
|
#define TFT_CS 27
|
2018-08-10 13:36:41 +01:00
|
|
|
#define TFT_RST 26
|
2014-10-18 12:33:48 +01:00
|
|
|
|
2014-11-02 17:34:19 +00:00
|
|
|
// PS/2 keyboard
|
2018-08-10 13:36:41 +01:00
|
|
|
#define KBD_DATA 14
|
|
|
|
#define KBD_IRQ 12
|
2014-11-02 17:34:19 +00:00
|
|
|
|
2014-10-18 12:33:48 +01:00
|
|
|
// SPI-RAM
|
2018-08-10 13:36:41 +01:00
|
|
|
#undef SPIRAM_CS
|
2014-10-18 12:33:48 +01:00
|
|
|
|
|
|
|
// "tape" storage...
|
2018-08-10 13:36:41 +01:00
|
|
|
#undef SD_CS
|
2018-08-14 06:28:03 +01:00
|
|
|
#define USE_SPIFFS 1
|
2014-11-02 17:34:19 +00:00
|
|
|
|
2014-10-31 08:44:28 +00:00
|
|
|
bool hardware_reset();
|
|
|
|
void hardware_init(class CPU &);
|
2014-11-02 17:34:19 +00:00
|
|
|
void hardware_checkpoint(class Stream &);
|
|
|
|
void hardware_restore(class Stream &);
|
2014-10-19 15:19:06 +01:00
|
|
|
|
2014-11-10 14:16:45 +00:00
|
|
|
#ifdef __PS2DRV_H__
|
2014-10-19 15:19:06 +01:00
|
|
|
extern class PS2Driver ps2;
|
2014-11-10 14:16:45 +00:00
|
|
|
#endif
|
2018-08-10 13:36:41 +01:00
|
|
|
#if defined(__SPIRAM_H__) && defined(SPIRAM_CS)
|
2014-10-19 15:19:06 +01:00
|
|
|
extern class spiram sram;
|
2014-11-10 14:16:45 +00:00
|
|
|
#endif
|
|
|
|
#ifdef UTFT_h
|
2014-10-19 15:19:06 +01:00
|
|
|
extern class UTFT utft;
|
2014-11-10 14:16:45 +00:00
|
|
|
#endif
|
|
|
|
#ifdef __MEMORY_H__
|
2014-10-19 15:19:06 +01:00
|
|
|
extern class Memory memory;
|
2014-11-10 14:16:45 +00:00
|
|
|
#endif
|
2014-10-19 15:19:06 +01:00
|
|
|
|
2014-10-18 12:33:48 +01:00
|
|
|
#endif
|