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

33 lines
632 B
C
Raw Normal View History

2014-10-18 11:33:48 +00:00
/*
2018-08-10 10:13:45 +00:00
* The hardware configuration of the machine.
2014-10-18 11:33:48 +00:00
*/
2014-11-10 14:16:45 +00:00
#ifndef __HARDWARE_H__
#define __HARDWARE_H__
2014-10-18 11:33:48 +00:00
2018-11-08 07:34:28 +00:00
#if defined(HARDWARE_H)
#include HARDWARE_H
#elif defined(ESP32)
2018-11-18 14:41:49 +00:00
#include "hw/esp32-espi-dac.h"
2018-11-07 21:38:04 +00:00
#elif defined(ESP8266)
2018-11-30 14:31:51 +00:00
#include "hw/esp8266-pwm-fs.h"
2018-11-08 17:52:42 +00:00
#else
#error "unknown architecture"
2018-11-05 21:34:39 +00:00
#endif
2014-11-02 17:34:19 +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
2018-11-16 10:25:23 +00:00
#if defined(__SPIRAM_H__) && defined(USE_SPIRAM)
2014-10-19 14:19:06 +00:00
extern class spiram sram;
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