summaryrefslogtreecommitdiffstats
path: root/src/mess/drivers/sg1000.c
diff options
context:
space:
mode:
author smf- <smf-@users.noreply.github.com>2013-12-22 16:27:05 +0000
committer smf- <smf-@users.noreply.github.com>2013-12-22 16:27:05 +0000
commit6c3f17c5956faefd2f1dc026468db2da03eee2bc (patch)
tree275f9cacd98df9821ae9e0e2a2ff4d155a4df358 /src/mess/drivers/sg1000.c
parentb4c7b67ff9a1b12dd414502864cee66628b3bd19 (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/sg1000.c')
-rw-r--r--src/mess/drivers/sg1000.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/mess/drivers/sg1000.c b/src/mess/drivers/sg1000.c
index feb99678ef0..88c79200aa9 100644
--- a/src/mess/drivers/sg1000.c
+++ b/src/mess/drivers/sg1000.c
@@ -650,9 +650,7 @@ static I8255_INTERFACE( sf7000_ppi_intf )
static const i8251_interface usart_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,
@@ -889,7 +887,10 @@ static MACHINE_CONFIG_START( sf7000, sf7000_state )
MCFG_FLOPPY_DRIVE_ADD(UPD765_TAG ":0", sf7000_floppies, "3ssdd", sf7000_state::floppy_formats)
MCFG_CENTRONICS_PRINTER_ADD(CENTRONICS_TAG, standard_centronics)
MCFG_CASSETTE_ADD("cassette", sc3000_cassette_interface)
+
MCFG_RS232_PORT_ADD(RS232_TAG, default_rs232_devices, NULL)
+ MCFG_SERIAL_OUT_RX_HANDLER(DEVWRITELINE(UPD8251_TAG, i8251_device, write_rx))
+ MCFG_RS232_OUT_DSR_HANDLER(DEVWRITELINE(UPD8251_TAG, i8251_device, write_dsr))
/* software lists */
MCFG_SOFTWARE_LIST_ADD("flop_list","sf7000")