summaryrefslogtreecommitdiffstatshomepage
path: root/src/devices/bus/hp_dio
diff options
context:
space:
mode:
author Sven Schnelle <svens@stackframe.org>2018-10-12 21:38:48 +0200
committer Sven Schnelle <svens@stackframe.org>2018-10-12 21:38:48 +0200
commit49bd62ebdb7c95f5a57ca68b8d8826a06df98cb7 (patch)
treeda242824e66d697083f6bdb1f24a71eb01288279 /src/devices/bus/hp_dio
parent6043fdfb48a0667b182619b755cbee59b7dfb7fe (diff)
hp98644: remove MCFG (nw)
Diffstat (limited to 'src/devices/bus/hp_dio')
-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