1
0
mirror of https://github.com/jscrane/r65emu.git synced 2024-12-30 09:30:46 +00:00
r65emu/hardware.h

45 lines
1.0 KiB
C
Raw Normal View History

2014-10-18 11:33:48 +00:00
/*
* The hardware configuration of the machine.
* (This should be the same for all emulated devices.)
*/
#ifndef __HARDWARE_H
#define __HARDWARE_H
// 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
// SPI-RAM
#define SPIRAM_CS PE_0
#define SPIRAM_SPI 1
#define SPIRAM_DEV SPI_for_SD
2014-10-19 12:25:08 +00:00
#define SPIRAM_SIZE 32768
2014-10-18 11:33:48 +00:00
// PS/2 keyboard
#define KBD_DATA PE_4
#define KBD_IRQ PE_5
// "tape" storage...
#define SD_CS PF_3
#define SD_SPI 1
2014-10-21 18:41:44 +00:00
bool hardware_init(class CPU &);
void hardware_checkpoint(Stream &); // FIXME: make a path?
void hardware_restore(Stream &);
2014-10-19 14:19:06 +00:00
extern class PS2Driver ps2;
extern class spiram sram;
extern class UTFT utft;
extern class Memory memory;
2014-10-18 11:33:48 +00:00
#endif