summaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
author R. Belmont <rb6502@users.noreply.github.com>2018-10-13 09:06:44 -0400
committer GitHub <noreply@github.com>2018-10-13 09:06:44 -0400
commita3931cf946c785ac2d1d81faf60a54f5c14927d0 (patch)
tree66fd5e23d0ab0207cf649e0424140e29dcf96ed3
parent675fb8f2bba67def420d56777b47c15e70521360 (diff)
parent49bd62ebdb7c95f5a57ca68b8d8826a06df98cb7 (diff)
Merge pull request #4134 from hp9k/hp98644_mcfg_removal
hp98644: remove MCFG (nw)
-rw-r--r--src/devices/bus/hp_dio/hp98644.cpp17
1 files changed, 9 insertions, 8 deletions
diff --git a/src/devices/bus/hp_dio/hp98644.cpp b/src/devices/bus/hp_dio/hp98644.cpp
index c45b3a5e593..4147b583c11 100644
--- a/src/devices/bus/hp_dio/hp98644.cpp
+++ b/src/devices/bus/hp_dio/hp98644.cpp
@@ -27,19 +27,20 @@ namespace bus {
#define RS232_TAG "rs232"
#define INS8250_TAG "ins8250"
-MACHINE_CONFIG_START( dio16_98644_device::device_add_mconfig )
+void dio16_98644_device::device_add_mconfig(machine_config &config)
+{
INS8250(config, m_uart, XTAL(2'457'600));
m_uart->out_tx_callback().set(RS232_TAG, FUNC(rs232_port_device::write_txd));
m_uart->out_dtr_callback().set(RS232_TAG, FUNC(rs232_port_device::write_dtr));
m_uart->out_rts_callback().set(RS232_TAG, FUNC(rs232_port_device::write_rts));
- MCFG_DEVICE_ADD(RS232_TAG, RS232_PORT, default_rs232_devices, nullptr)
- MCFG_RS232_RXD_HANDLER(WRITELINE(m_uart, ins8250_uart_device, rx_w))
- MCFG_RS232_DCD_HANDLER(WRITELINE(m_uart, ins8250_uart_device, dcd_w))
- MCFG_RS232_DSR_HANDLER(WRITELINE(m_uart, ins8250_uart_device, dsr_w))
- MCFG_RS232_RI_HANDLER(WRITELINE(m_uart, ins8250_uart_device, ri_w))
- MCFG_RS232_CTS_HANDLER(WRITELINE(m_uart, ins8250_uart_device, cts_w))
-MACHINE_CONFIG_END
+ rs232_port_device &rs232(RS232_PORT(config, RS232_TAG, default_rs232_devices, nullptr));
+ rs232.rxd_handler().set(m_uart, FUNC(ins8250_uart_device::rx_w));
+ rs232.dcd_handler().set(m_uart, FUNC(ins8250_uart_device::dcd_w));
+ rs232.dsr_handler().set(m_uart, FUNC(ins8250_uart_device::dsr_w));
+ rs232.ri_handler().set(m_uart, FUNC(ins8250_uart_device::ri_w));
+ rs232.cts_handler().set(m_uart, FUNC(ins8250_uart_device::cts_w));
+}
//**************************************************************************
// LIVE DEVICE