summaryrefslogtreecommitdiffstatshomepage
path: root/src/devices/cpu/sh/sh7604_wdt.h
blob: 12b7896fe448c93e78df919c8b9facbccfe4c0e3 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
// 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



//**************************************************************************
//  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, const XTAL &clock);

	// I/O operations
	void wdt_regs(address_map &map);

	void write(address_space &space, offs_t offset, uint16_t data);
	uint8_t read(address_space &space, offs_t offset);

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