summaryrefslogtreecommitdiffstatshomepage
path: root/src/emu/machine/rtc4543.h
diff options
context:
space:
mode:
author Olivier Galibert <galibert@pobox.com>2014-03-25 21:53:54 +0000
committer Olivier Galibert <galibert@pobox.com>2014-03-25 21:53:54 +0000
commit65d778cad30497d412c7a05200fc3aa9b71cac1e (patch)
tree42517f90a95bf9a3d9cccf4f0ea9c7b3485faee9 /src/emu/machine/rtc4543.h
parent9957ec800350177870827f4403e4ad43006dd8a2 (diff)
h8: Rewrite [O. Galibert]
(mess) mu100: Main screen turn on [O. Galibert]
Diffstat (limited to 'src/emu/machine/rtc4543.h')
-rw-r--r--src/emu/machine/rtc4543.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/emu/machine/rtc4543.h b/src/emu/machine/rtc4543.h
index 94d5bf5bdea..9c94bcb207e 100644
--- a/src/emu/machine/rtc4543.h
+++ b/src/emu/machine/rtc4543.h
@@ -21,6 +21,9 @@
#define MCFG_RTC4543_ADD(_tag, _clock) \
MCFG_DEVICE_ADD(_tag, RTC4543, _clock)
+#define MCFG_RTC4543_DATA_CALLBACK(_devcb) \
+ devcb = &rtc4543_device::set_data_cb(*device, DEVCB2_##_devcb);
+
//**************************************************************************
@@ -42,6 +45,8 @@ public:
DECLARE_READ_LINE_MEMBER( data_r );
DECLARE_WRITE_LINE_MEMBER( data_w );
+ template<class _Object> static devcb2_base &set_data_cb(device_t &device, _Object object) { return downcast<rtc4543_device &>(device).data_cb.set_callback(object); }
+
protected:
// device-level overrides
virtual void device_start();
@@ -53,6 +58,8 @@ protected:
virtual bool rtc_feature_leap_year() { return true; }
private:
+ devcb2_write_line data_cb;
+
int m_ce;
int m_clk;
int m_wr;