summaryrefslogtreecommitdiffstatshomepage
path: root/src/devices/cpu/h8/h8_sci.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/devices/cpu/h8/h8_sci.h')
-rw-r--r--src/devices/cpu/h8/h8_sci.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/devices/cpu/h8/h8_sci.h b/src/devices/cpu/h8/h8_sci.h
index 3c2db4147df..065c5e4b305 100644
--- a/src/devices/cpu/h8/h8_sci.h
+++ b/src/devices/cpu/h8/h8_sci.h
@@ -25,10 +25,10 @@
downcast<h8_sci_device *>(device)->set_external_clock_period(_period);
#define MCFG_H8_SCI_TX_CALLBACK(_devcb) \
- devcb = &downcast<h8_sci_device &>(*device).set_tx_cb(DEVCB_##_devcb);
+ downcast<h8_sci_device &>(*device).set_tx_cb(DEVCB_##_devcb);
#define MCFG_H8_SCI_CLK_CALLBACK(_devcb) \
- devcb = &downcast<h8_sci_device &>(*device).set_clk_cb(DEVCB_##_devcb);
+ downcast<h8_sci_device &>(*device).set_clk_cb(DEVCB_##_devcb);
class h8_sci_device : public device_t {
public:
@@ -56,6 +56,8 @@ public:
template <class Object> devcb_base &set_tx_cb(Object &&cb) { return tx_cb.set_callback(std::forward<Object>(cb)); }
template <class Object> devcb_base &set_clk_cb(Object &&cb) { return clk_cb.set_callback(std::forward<Object>(cb)); }
+ auto tx_handler() { return tx_cb.bind(); }
+ auto clk_handler() { return clk_cb.bind(); }
uint64_t internal_update(uint64_t current_time);