summaryrefslogtreecommitdiffstatshomepage
path: root/src/mame/drivers/cm1800.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mame/drivers/cm1800.cpp')
-rw-r--r--src/mame/drivers/cm1800.cpp13
1 files changed, 7 insertions, 6 deletions
diff --git a/src/mame/drivers/cm1800.cpp b/src/mame/drivers/cm1800.cpp
index 7dacac348b9..99066fa20aa 100644
--- a/src/mame/drivers/cm1800.cpp
+++ b/src/mame/drivers/cm1800.cpp
@@ -104,12 +104,13 @@ MACHINE_CONFIG_START(cm1800_state::cm1800)
MCFG_DEVICE_IO_MAP(io_map)
/* video hardware */
- MCFG_DEVICE_ADD("uart", AY51013, 0) // exact uart type is unknown
- MCFG_AY51013_TX_CLOCK(153600)
- MCFG_AY51013_RX_CLOCK(153600)
- MCFG_AY51013_READ_SI_CB(READLINE("rs232", rs232_port_device, rxd_r))
- MCFG_AY51013_WRITE_SO_CB(WRITELINE("rs232", rs232_port_device, write_txd))
- MCFG_AY51013_AUTO_RDAV(true)
+ AY51013(config, m_uart); // exact uart type is unknown
+ m_uart->set_tx_clock(153600);
+ m_uart->set_rx_clock(153600);
+ m_uart->read_si_callback().set("rs232", FUNC(rs232_port_device::rxd_r));
+ m_uart->write_so_callback().set("rs232", FUNC(rs232_port_device::write_txd));
+ m_uart->set_auto_rdav(true);
+
MCFG_DEVICE_ADD("rs232", RS232_PORT, default_rs232_devices, "terminal")
MACHINE_CONFIG_END