diff options
Diffstat (limited to 'src/devices/cpu/sh/sh7604_wdt.h')
-rw-r--r-- | src/devices/cpu/sh/sh7604_wdt.h | 54 |
1 files changed, 54 insertions, 0 deletions
diff --git a/src/devices/cpu/sh/sh7604_wdt.h b/src/devices/cpu/sh/sh7604_wdt.h new file mode 100644 index 00000000000..7e014745f19 --- /dev/null +++ b/src/devices/cpu/sh/sh7604_wdt.h @@ -0,0 +1,54 @@ +// license:BSD-3-Clause +// copyright-holders:Angelo Salese +/*************************************************************************** + + SH7604 Watchdog Timer Controller + +***************************************************************************/ + +#ifndef MAME_CPU_SH7604_WDT_H +#define MAME_CPU_SH7604_WDT_H + +#pragma once + + + +//************************************************************************** +// INTERFACE CONFIGURATION MACROS +//************************************************************************** + +#define MCFG_SH7604_WDT_ADD(_tag,_freq) \ + MCFG_DEVICE_ADD(_tag, SH7604_WDT, _freq) + +//************************************************************************** +// TYPE DEFINITIONS +//************************************************************************** + +// ======================> sh7604_wdt_device + +class sh7604_wdt_device : public device_t +{ +public: + // construction/destruction + sh7604_wdt_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock); + + // I/O operations + DECLARE_ADDRESS_MAP( wdt_regs, 8 ); + + DECLARE_WRITE16_MEMBER( write ); + DECLARE_READ8_MEMBER( read ); + +protected: + // device-level overrides +// virtual void device_validity_check(validity_checker &valid) const; + virtual void device_start() override; + virtual void device_reset() override; +private: + const address_space_config m_space_config; +}; + + +// device type definition +DECLARE_DEVICE_TYPE(SH7604_WDT, sh7604_wdt_device) + +#endif // MAME_CPU_SH7604_WDT_H |