diff options
author | 2013-12-22 16:27:05 +0000 | |
---|---|---|
committer | 2013-12-22 16:27:05 +0000 | |
commit | 6c3f17c5956faefd2f1dc026468db2da03eee2bc (patch) | |
tree | 275f9cacd98df9821ae9e0e2a2ff4d155a4df358 /src/emu/machine/i8251.h | |
parent | b4c7b67ff9a1b12dd414502864cee66628b3bd19 (diff) |
replaced read rx/cts/dcd callbacks in I8251 with write handlers, which allows multiple chips to be connected together without using glue methods. [smf]
Diffstat (limited to 'src/emu/machine/i8251.h')
-rw-r--r-- | src/emu/machine/i8251.h | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/src/emu/machine/i8251.h b/src/emu/machine/i8251.h index e9c8006529f..a116be096a0 100644 --- a/src/emu/machine/i8251.h +++ b/src/emu/machine/i8251.h @@ -43,9 +43,7 @@ struct i8251_interface { - devcb_read_line m_in_rxd_cb; devcb_write_line m_out_txd_cb; - devcb_read_line m_in_dsr_cb; devcb_write_line m_out_dtr_cb; devcb_write_line m_out_rts_cb; devcb_write_line m_out_rxrdy_cb; @@ -85,6 +83,9 @@ public: DECLARE_WRITE_LINE_MEMBER( txc_w ) { if (state) transmit_clock(); } DECLARE_WRITE_LINE_MEMBER( rxc_w ) { if (state) receive_clock(); } + DECLARE_WRITE_LINE_MEMBER( write_rx ); + DECLARE_WRITE_LINE_MEMBER( write_dsr ); + void receive_character(UINT8 ch); virtual void input_callback(UINT8 state); @@ -99,9 +100,7 @@ protected: void update_tx_ready(); void update_tx_empty(); private: - devcb_resolved_read_line m_in_rxd_func; devcb_resolved_write_line m_out_txd_func; - devcb_resolved_read_line m_in_dsr_func; devcb_resolved_write_line m_out_dtr_func; devcb_resolved_write_line m_out_rts_func; devcb_resolved_write_line m_out_rxrdy_func; |