diff options
Diffstat (limited to 'src/mame/drivers/votrpss.cpp')
-rw-r--r-- | src/mame/drivers/votrpss.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/mame/drivers/votrpss.cpp b/src/mame/drivers/votrpss.cpp index 8ea03ea7a6d..ffa77f2d290 100644 --- a/src/mame/drivers/votrpss.cpp +++ b/src/mame/drivers/votrpss.cpp @@ -266,10 +266,10 @@ MACHINE_CONFIG_START(votrpss_state::votrpss) MCFG_DEVICE_ADD(m_terminal, GENERIC_TERMINAL, 0) MCFG_GENERIC_TERMINAL_KEYBOARD_CB(PUT(votrpss_state, kbd_put)) - MCFG_DEVICE_ADD("uart", I8251, 0) - MCFG_I8251_TXD_HANDLER(WRITELINE("rs232", rs232_port_device, write_txd)) - MCFG_I8251_DTR_HANDLER(WRITELINE("rs232", rs232_port_device, write_dtr)) - MCFG_I8251_RTS_HANDLER(WRITELINE("rs232", rs232_port_device, write_rts)) + i8251_device &uart(I8251(config, "uart", 0)); + uart.txd_handler().set("rs232", FUNC(rs232_port_device::write_txd)); + uart.dtr_handler().set("rs232", FUNC(rs232_port_device::write_dtr)); + uart.rts_handler().set("rs232", FUNC(rs232_port_device::write_rts)); // when serial is chosen, and you select terminal, nothing shows (by design). You can only type commands in. MCFG_DEVICE_ADD("rs232", RS232_PORT, default_rs232_devices, nullptr) |