summaryrefslogtreecommitdiffstats
path: root/src/mame/drivers/konin.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mame/drivers/konin.cpp')
-rw-r--r--src/mame/drivers/konin.cpp16
1 files changed, 8 insertions, 8 deletions
diff --git a/src/mame/drivers/konin.cpp b/src/mame/drivers/konin.cpp
index 82e0a43ec90..07671e183ce 100644
--- a/src/mame/drivers/konin.cpp
+++ b/src/mame/drivers/konin.cpp
@@ -141,24 +141,24 @@ MACHINE_CONFIG_START(konin_state::konin)
MCFG_DEVICE_IRQ_ACKNOWLEDGE_DEVICE("intlatch", i8212_device, inta_cb)
MCFG_DEVICE_ADD("intlatch", I8212, 0)
- MCFG_I8212_MD_CALLBACK(GND)
+ MCFG_I8212_MD_CALLBACK(CONSTANT(0))
MCFG_I8212_DI_CALLBACK(READ8("picu", i8214_device, vector_r))
MCFG_I8212_INT_CALLBACK(INPUTLINE("maincpu", I8085_INTR_LINE))
MCFG_DEVICE_ADD("picu", I8214, XTAL(4'000'000))
MCFG_I8214_INT_CALLBACK(WRITELINE("intlatch", i8212_device, stb_w))
- MCFG_DEVICE_ADD("mainpit", PIT8253, 0)
+ pit8253_device &mainpit(PIT8253(config, "mainpit", 0));
// wild guess at UART clock and source
- MCFG_PIT8253_CLK0(1536000)
- MCFG_PIT8253_OUT0_HANDLER(WRITELINE("uart", i8251_device, write_txc))
- MCFG_DEVCB_CHAIN_OUTPUT(WRITELINE("uart", i8251_device, write_rxc))
+ mainpit.set_clk<0>(1536000);
+ mainpit.out_handler<0>().set("uart", FUNC(i8251_device::write_txc));
+ mainpit.out_handler<0>().append("uart", FUNC(i8251_device::write_rxc));
- MCFG_DEVICE_ADD("mainppi", I8255, 0)
+ I8255(config, "mainppi", 0);
- MCFG_DEVICE_ADD("iopit", PIT8253, 0)
+ PIT8253(config, m_iopit, 0);
- MCFG_DEVICE_ADD("ioppi", I8255, 0)
+ I8255(config, m_ioppi, 0);
MCFG_DEVICE_ADD("uart", I8251, 0)
MCFG_I8251_TXD_HANDLER(WRITELINE("rs232", rs232_port_device, write_txd))