2014-10-18 11:33:48 +00:00
|
|
|
/*
|
|
|
|
* The hardware configuration of the machine.
|
|
|
|
* (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 11:33:48 +00:00
|
|
|
|
|
|
|
// 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
|
|
|
|
// TFT01_2.4: http://www.elecfreaks.com/store/24-tft-lcd-tft0124-p-110.html
|
|
|
|
// #undef TFT_BACKLIGHT
|
|
|
|
// #define TFT_MODEL S6D1121_8
|
|
|
|
#define TFT_RS PC_6
|
|
|
|
#define TFT_WR PC_5
|
|
|
|
#define TFT_CS PC_7
|
|
|
|
#define TFT_RST PC_4
|
|
|
|
|
2014-11-02 17:34:19 +00:00
|
|
|
// PS/2 keyboard
|
|
|
|
#define KBD_DATA PE_4
|
|
|
|
#define KBD_IRQ PE_5
|
|
|
|
|
2014-10-18 11:33:48 +00:00
|
|
|
// SPI-RAM
|
|
|
|
#define SPIRAM_CS PE_0
|
2014-11-02 17:34:19 +00:00
|
|
|
//#define SPIRAM_CS PF_3
|
2014-10-18 11:33:48 +00:00
|
|
|
#define SPIRAM_SPI 1
|
|
|
|
#define SPIRAM_DEV SPI_for_SD
|
2015-11-30 14:49:56 +00:00
|
|
|
#define SPIRAM_SIZE 65536
|
2014-10-18 11:33:48 +00:00
|
|
|
|
|
|
|
// "tape" storage...
|
|
|
|
#define SD_CS PF_3
|
2014-11-02 17:34:19 +00:00
|
|
|
//#define SD_CS PE_0
|
2014-10-18 11:33:48 +00:00
|
|
|
#define SD_SPI 1
|
|
|
|
|
2014-11-02 17:34:19 +00:00
|
|
|
#define SPI_CS PF_3
|
|
|
|
|
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 14:19:06 +00:00
|
|
|
|
2014-11-10 14:16:45 +00:00
|
|
|
#ifdef __PS2DRV_H__
|
2014-10-19 14:19:06 +00:00
|
|
|
extern class PS2Driver ps2;
|
2014-11-10 14:16:45 +00:00
|
|
|
#endif
|
|
|
|
#ifdef __SPIRAM_H__
|
2014-10-19 14:19:06 +00:00
|
|
|
extern class spiram sram;
|
2014-11-10 14:16:45 +00:00
|
|
|
#endif
|
|
|
|
#ifdef UTFT_h
|
2014-10-19 14:19:06 +00:00
|
|
|
extern class UTFT utft;
|
2014-11-10 14:16:45 +00:00
|
|
|
#endif
|
|
|
|
#ifdef __MEMORY_H__
|
2014-10-19 14:19:06 +00:00
|
|
|
extern class Memory memory;
|
2014-11-10 14:16:45 +00:00
|
|
|
#endif
|
2014-10-19 14:19:06 +00:00
|
|
|
|
2014-10-18 11:33:48 +00:00
|
|
|
#endif
|