mirror of
https://github.com/jscrane/r65emu.git
synced 2024-12-21 12:29:51 +00:00
33 lines
632 B
C
33 lines
632 B
C
/*
|
|
* The hardware configuration of the machine.
|
|
*/
|
|
#ifndef __HARDWARE_H__
|
|
#define __HARDWARE_H__
|
|
|
|
#if defined(HARDWARE_H)
|
|
#include HARDWARE_H
|
|
#elif defined(ESP32)
|
|
#include "hw/esp32-espi-dac.h"
|
|
#elif defined(ESP8266)
|
|
#include "hw/esp8266-pwm-fs.h"
|
|
#else
|
|
#error "unknown architecture"
|
|
#endif
|
|
|
|
bool hardware_reset();
|
|
void hardware_init(class CPU &);
|
|
void hardware_checkpoint(class Stream &);
|
|
void hardware_restore(class Stream &);
|
|
|
|
#ifdef __PS2DRV_H__
|
|
extern class PS2Driver ps2;
|
|
#endif
|
|
#if defined(__SPIRAM_H__) && defined(USE_SPIRAM)
|
|
extern class spiram sram;
|
|
#endif
|
|
#ifdef __MEMORY_H__
|
|
extern class Memory memory;
|
|
#endif
|
|
|
|
#endif
|