diff options
author | AJR <ajrhacker@users.noreply.github.com> | 2018-08-10 19:13:45 -0400 |
---|---|---|
committer | AJR <ajrhacker@users.noreply.github.com> | 2018-08-10 19:14:43 -0400 |
commit | 0b19200fc45ce002d6e7d89f004e9564b22a6195 (patch) | |
tree | f3a8a4d456f956852221b57bee5d3a1c90c6c377 /src/mame/drivers/cm1800.cpp | |
parent | 372ac5c7e7d912fa39ec23670cb5afe8bbf547e1 (diff) |
ay31015: Remove MCFG_ macros (these were really ugly ones); default input clock (nw)
bankdev: Default input clock (nw)
Diffstat (limited to 'src/mame/drivers/cm1800.cpp')
-rw-r--r-- | src/mame/drivers/cm1800.cpp | 13 |
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 |