mirror of
https://github.com/jscrane/r65emu.git
synced 2024-08-31 09:29:18 +00:00
33 lines
628 B
C
33 lines
628 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-utft-dac.h"
|
|
#elif defined(ESP8266)
|
|
#include "hw/esp8266-pwm.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(SPIRAM_CS)
|
|
extern class spiram sram;
|
|
#endif
|
|
#ifdef __MEMORY_H__
|
|
extern class Memory memory;
|
|
#endif
|
|
|
|
#endif
|