summaryrefslogtreecommitdiffstatshomepage
path: root/src/devices/machine/aakart.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/devices/machine/aakart.h')
-rw-r--r--src/devices/machine/aakart.h15
1 files changed, 2 insertions, 13 deletions
diff --git a/src/devices/machine/aakart.h b/src/devices/machine/aakart.h
index 661a1f33086..85ca75281ef 100644
--- a/src/devices/machine/aakart.h
+++ b/src/devices/machine/aakart.h
@@ -14,17 +14,6 @@ Acorn Archimedes KART interface
//**************************************************************************
-// INTERFACE CONFIGURATION MACROS
-//**************************************************************************
-
-#define MCFG_AAKART_OUT_TX_CB(_devcb) \
- downcast<aakart_device &>(*device).set_out_tx_callback(DEVCB_##_devcb);
-
-#define MCFG_AAKART_OUT_RX_CB(_devcb) \
- downcast<aakart_device &>(*device).set_out_rx_callback(DEVCB_##_devcb);
-
-
-//**************************************************************************
// TYPE DEFINITIONS
//**************************************************************************
@@ -36,8 +25,8 @@ public:
// construction/destruction
aakart_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock);
- template <class Object> devcb_base &set_out_tx_callback(Object &&cb) { return m_out_tx_cb.set_callback(std::forward<Object>(cb)); }
- template <class Object> devcb_base &set_out_rx_callback(Object &&cb) { return m_out_rx_cb.set_callback(std::forward<Object>(cb)); }
+ auto out_tx_callback() { return m_out_tx_cb.bind(); }
+ auto out_rx_callback() { return m_out_rx_cb.bind(); }
// I/O operations
DECLARE_WRITE8_MEMBER( write );