summaryrefslogtreecommitdiffstatshomepage
path: root/src/mame/drivers/gp_1.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mame/drivers/gp_1.cpp')
-rw-r--r--src/mame/drivers/gp_1.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mame/drivers/gp_1.cpp b/src/mame/drivers/gp_1.cpp
index b649163982d..a2c3a71cfcc 100644
--- a/src/mame/drivers/gp_1.cpp
+++ b/src/mame/drivers/gp_1.cpp
@@ -454,8 +454,8 @@ MACHINE_CONFIG_START(gp_1_state::gp_1)
MCFG_I8255_IN_PORTB_CB(READ8(*this, gp_1_state, portb_r))
MCFG_I8255_OUT_PORTC_CB(WRITE8(*this, gp_1_state, portc_w))
- MCFG_DEVICE_ADD("ctc", Z80CTC, 2457600 )
- MCFG_Z80CTC_INTR_CB(INPUTLINE("maincpu", INPUT_LINE_IRQ0)) // Todo: absence of ints will cause a watchdog reset
+ Z80CTC(config, m_ctc, 2457600);
+ m_ctc->intr_callback().set_inputline(m_maincpu, INPUT_LINE_IRQ0); // Todo: absence of ints will cause a watchdog reset
MCFG_TIMER_DRIVER_ADD_PERIODIC("gp1", gp_1_state, zero_timer, attotime::from_hz(120)) // mains freq*2
MACHINE_CONFIG_END