summaryrefslogtreecommitdiffstatshomepage
path: root/src/mame/machine/km035.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/mame/machine/km035.h')
-rw-r--r--src/mame/machine/km035.h19
1 files changed, 2 insertions, 17 deletions
diff --git a/src/mame/machine/km035.h b/src/mame/machine/km035.h
index ad8dc58d21b..74245c373cf 100644
--- a/src/mame/machine/km035.h
+++ b/src/mame/machine/km035.h
@@ -8,21 +8,6 @@
#include "cpu/mcs48/mcs48.h"
#include "sound/beep.h"
-//**************************************************************************
-// MACROS / CONSTANTS
-//**************************************************************************
-
-
-//**************************************************************************
-// INTERFACE CONFIGURATION MACROS
-//**************************************************************************
-
-#define MCFG_KM035_TX_HANDLER(_cb) \
- downcast<km035_device &>(*device).set_tx_handler(DEVCB_##_cb);
-
-#define MCFG_KM035_RTS_HANDLER(_cb) \
- downcast<km035_device &>(*device).set_rts_handler(DEVCB_##_cb);
-
//**************************************************************************
// TYPE DEFINITIONS
@@ -36,8 +21,8 @@ public:
// construction/destruction
km035_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock);
- template <class Object> devcb_base &set_tx_handler(Object &&wr) { return m_tx_handler.set_callback(std::forward<Object>(wr)); }
- template <class Object> devcb_base &set_rts_handler(Object &&wr) { return m_rts_handler.set_callback(std::forward<Object>(wr)); }
+ auto tx_handler() { return m_tx_handler.bind(); }
+ auto rts_handler() { return m_rts_handler.bind(); }
DECLARE_WRITE_LINE_MEMBER( write_rxd );