summaryrefslogtreecommitdiffstatshomepage
path: root/src/devices/machine/rtc4543.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/devices/machine/rtc4543.h')
-rw-r--r--src/devices/machine/rtc4543.h20
1 files changed, 2 insertions, 18 deletions
diff --git a/src/devices/machine/rtc4543.h b/src/devices/machine/rtc4543.h
index 534c6f7fc43..f93fa097d59 100644
--- a/src/devices/machine/rtc4543.h
+++ b/src/devices/machine/rtc4543.h
@@ -15,22 +15,6 @@
#include "dirtc.h"
-
-//**************************************************************************
-// INTERFACE CONFIGURATION MACROS
-//**************************************************************************
-
-#define MCFG_RTC4543_ADD(tag, clock) \
- MCFG_DEVICE_ADD((tag), RTC4543, (clock))
-
-#define MCFG_RTC4543_DATA_CALLBACK(cb) \
- downcast<rtc4543_device &>(*device).set_data_cb(DEVCB_##cb);
-
-#define MCFG_JRC6355E_ADD(tag, clock) \
- MCFG_DEVICE_ADD((tag), JRC6355E, (clock))
-
-
-
//**************************************************************************
// TYPE DEFINITIONS
//**************************************************************************
@@ -52,7 +36,7 @@ public:
DECLARE_READ_LINE_MEMBER( data_r );
DECLARE_WRITE_LINE_MEMBER( data_w );
- template <class Object> devcb_base &set_data_cb(Object &&cb) { return data_cb.set_callback(std::forward<Object>(cb)); }
+ auto data_cb() { return m_data_cb.bind(); }
protected:
rtc4543_device(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, uint32_t clock);
@@ -76,7 +60,7 @@ protected:
void advance_bit();
void update_effective();
- devcb_write_line data_cb;
+ devcb_write_line m_data_cb;
int m_ce;
int m_clk;