summaryrefslogtreecommitdiffstatshomepage
path: root/src/mame/drivers/ft68m.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mame/drivers/ft68m.cpp')
-rw-r--r--src/mame/drivers/ft68m.cpp14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/mame/drivers/ft68m.cpp b/src/mame/drivers/ft68m.cpp
index 35e414d4829..dfeb86ae78e 100644
--- a/src/mame/drivers/ft68m.cpp
+++ b/src/mame/drivers/ft68m.cpp
@@ -96,13 +96,13 @@ MACHINE_CONFIG_START(ft68m_state::ft68m)
MCFG_Z80SIO_OUT_TXDB_CB(WRITELINE("rs232b", rs232_port_device, write_txd))
MCFG_Z80SIO_OUT_INT_CB(INPUTLINE("maincpu", M68K_IRQ_5))
- MCFG_DEVICE_ADD("stc", AM9513A, XTAL(19'660'800) / 8)
- MCFG_AM9513_OUT2_CALLBACK(INPUTLINE("maincpu", M68K_IRQ_6))
- MCFG_AM9513_OUT3_CALLBACK(INPUTLINE("maincpu", M68K_IRQ_7))
- MCFG_AM9513_OUT4_CALLBACK(WRITELINE("mpsc", upd7201_new_device, rxca_w))
- MCFG_DEVCB_CHAIN_OUTPUT(WRITELINE("mpsc", upd7201_new_device, txca_w))
- MCFG_AM9513_OUT5_CALLBACK(WRITELINE("mpsc", upd7201_new_device, rxcb_w))
- MCFG_DEVCB_CHAIN_OUTPUT(WRITELINE("mpsc", upd7201_new_device, txcb_w))
+ am9513_device &stc(AM9513A(config, "stc", XTAL(19'660'800) / 8));
+ stc.out2_cb().set_inputline(m_maincpu, M68K_IRQ_6);
+ stc.out3_cb().set_inputline(m_maincpu, M68K_IRQ_7);
+ stc.out4_cb().set("mpsc", FUNC(upd7201_new_device::rxca_w));
+ stc.out4_cb().append("mpsc", FUNC(upd7201_new_device::txca_w));
+ stc.out5_cb().set("mpsc", FUNC(upd7201_new_device::rxcb_w));
+ stc.out5_cb().append("mpsc", FUNC(upd7201_new_device::txcb_w));
MCFG_DEVICE_ADD("rs232a", RS232_PORT, default_rs232_devices, "terminal")
MCFG_RS232_RXD_HANDLER(WRITELINE("mpsc", upd7201_new_device, rxa_w))