blob: 3199f545bf7a690f95e486ec60a84b640777c46f (
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
48
49
50
51
52
53
54
55
56
|
// license:BSD-3-Clause
// copyright-holders:smf
/***************************************************************************
Fujistu MB3773
Power Supply Monitor with Watch Dog Timer (i.e. Reset IC)
***************************************************************************/
#pragma once
#ifndef __MB3773_H__
#define __MB3773_H__
//**************************************************************************
// INTERFACE CONFIGURATION MACROS
//**************************************************************************
#define MCFG_MB3773_ADD(_tag) \
MCFG_DEVICE_ADD(_tag, MB3773, 0)
// ======================> mb3773_device
class mb3773_device :
public device_t
{
public:
// construction/destruction
mb3773_device( const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock );
// I/O operations
WRITE_LINE_MEMBER( write_line_ck );
protected:
// device-level overrides
virtual void device_start();
virtual void device_reset();
virtual void device_timer(emu_timer &timer, device_timer_id id, int param, void *ptr);
private:
void reset_timer();
// internal state
emu_timer *m_watchdog_timer;
int m_ck;
};
// device type definition
extern const device_type MB3773;
#endif
|