summaryrefslogtreecommitdiffstatshomepage
path: root/src/devices/video/hd61830.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/devices/video/hd61830.h')
-rw-r--r--src/devices/video/hd61830.h13
1 files changed, 12 insertions, 1 deletions
diff --git a/src/devices/video/hd61830.h b/src/devices/video/hd61830.h
index f8579081ac1..ab4278f9d89 100644
--- a/src/devices/video/hd61830.h
+++ b/src/devices/video/hd61830.h
@@ -12,6 +12,17 @@
#pragma once
+
+
+//**************************************************************************
+// INTERFACE CONFIGURATION MACROS
+//**************************************************************************
+
+#define MCFG_HD61830_RD_CALLBACK(_read) \
+ downcast<hd61830_device &>(*device).set_rd_rd_callback(DEVCB_##_read);
+
+
+
//**************************************************************************
// TYPE DEFINITIONS
//**************************************************************************
@@ -26,7 +37,7 @@ public:
// construction/destruction
hd61830_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock);
- auto rd_rd_callback() { return m_read_rd.bind(); }
+ template <class Object> devcb_base &set_rd_rd_callback(Object &&cb) { return m_read_rd.set_callback(std::forward<Object>(cb)); }
DECLARE_READ8_MEMBER( status_r );
DECLARE_WRITE8_MEMBER( control_w );