1
0
mirror of https://github.com/jscrane/r65emu.git synced 2024-12-22 03:30:02 +00:00
r65emu/hardware.h
2023-09-28 22:14:11 +01:00

35 lines
619 B
C

/*
* The hardware configuration of the machine.
*/
#ifndef __HARDWARE_H__
#define __HARDWARE_H__
#if defined(HARDWARE_H)
#include HARDWARE_H
#else
#include "hw/user.h"
#endif
bool hardware_reset();
void hardware_init(class CPU &);
void hardware_checkpoint(class Stream &);
void hardware_restore(class Stream &);
#if defined(__PS2DRV_H__) && defined(USE_KBD)
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
#if defined(DEBUGGING)
#define DBG(x) Serial.x
#else
#define DBG(x)
#endif
#endif