summaryrefslogtreecommitdiffstatshomepage
path: root/src/mame/drivers/seattlecmp.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mame/drivers/seattlecmp.cpp')
-rw-r--r--src/mame/drivers/seattlecmp.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/mame/drivers/seattlecmp.cpp b/src/mame/drivers/seattlecmp.cpp
index eaedcf1ab3f..0b8e8e38fa3 100644
--- a/src/mame/drivers/seattlecmp.cpp
+++ b/src/mame/drivers/seattlecmp.cpp
@@ -133,11 +133,11 @@ MACHINE_CONFIG_START(seattle_comp_state::seattle)
uart.rxrdy_handler().set("pic2", FUNC(pic8259_device::ir1_w));
uart.txrdy_handler().set("pic2", FUNC(pic8259_device::ir5_w));
- MCFG_DEVICE_ADD("rs232", RS232_PORT, default_rs232_devices, "terminal")
- MCFG_RS232_RXD_HANDLER(WRITELINE("uart", i8251_device, write_rxd))
- MCFG_RS232_DSR_HANDLER(WRITELINE("uart", i8251_device, write_dsr))
- MCFG_RS232_CTS_HANDLER(WRITELINE("uart", i8251_device, write_cts))
- MCFG_SLOT_OPTION_DEVICE_INPUT_DEFAULTS("terminal", terminal) // must be exactly here
+ rs232_port_device &rs232(RS232_PORT(config, "rs232", default_rs232_devices, "terminal"));
+ rs232.rxd_handler().set("uart", FUNC(i8251_device::write_rxd));
+ rs232.dsr_handler().set("uart", FUNC(i8251_device::write_dsr));
+ rs232.cts_handler().set("uart", FUNC(i8251_device::write_cts));
+ rs232.set_option_device_input_defaults("terminal", DEVICE_INPUT_DEFAULTS_NAME(terminal));
MACHINE_CONFIG_END
/* ROM definition */