diff options
author | 2013-12-22 16:27:05 +0000 | |
---|---|---|
committer | 2013-12-22 16:27:05 +0000 | |
commit | 6c3f17c5956faefd2f1dc026468db2da03eee2bc (patch) | |
tree | 275f9cacd98df9821ae9e0e2a2ff4d155a4df358 /src/mess/drivers/kyocera.c | |
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/mess/drivers/kyocera.c')
-rw-r--r-- | src/mess/drivers/kyocera.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/mess/drivers/kyocera.c b/src/mess/drivers/kyocera.c index 23120578e4f..14e4b774814 100644 --- a/src/mess/drivers/kyocera.c +++ b/src/mess/drivers/kyocera.c @@ -1188,9 +1188,7 @@ static IM6402_INTERFACE( uart_intf ) static const i8251_interface tandy200_uart_intf = { - DEVCB_DEVICE_LINE_MEMBER(RS232_TAG, serial_port_device, rx), DEVCB_DEVICE_LINE_MEMBER(RS232_TAG, serial_port_device, tx), - DEVCB_DEVICE_LINE_MEMBER(RS232_TAG, rs232_port_device, dsr_r), DEVCB_DEVICE_LINE_MEMBER(RS232_TAG, rs232_port_device, dtr_w), DEVCB_DEVICE_LINE_MEMBER(RS232_TAG, rs232_port_device, rts_w), DEVCB_NULL, @@ -1532,7 +1530,11 @@ static MACHINE_CONFIG_START( tandy200, tandy200_state ) MCFG_I8155_ADD(I8155_TAG, XTAL_4_9152MHz/2, tandy200_8155_intf) MCFG_RP5C01_ADD(RP5C01A_TAG, XTAL_32_768kHz, tandy200_rtc_intf) MCFG_I8251_ADD(I8251_TAG, /*XTAL_4_9152MHz/2,*/ tandy200_uart_intf) + MCFG_RS232_PORT_ADD(RS232_TAG, default_rs232_devices, NULL) + MCFG_SERIAL_OUT_RX_HANDLER(DEVWRITELINE(I8251_TAG, i8251_device, write_rx)) + MCFG_RS232_OUT_DSR_HANDLER(DEVWRITELINE(I8251_TAG, i8251_device, write_dsr)) + // MCFG_MC14412_ADD(MC14412_TAG, XTAL_1MHz) MCFG_CENTRONICS_PRINTER_ADD(CENTRONICS_TAG, standard_centronics) MCFG_CASSETTE_ADD("cassette", kc85_cassette_interface) |