summaryrefslogtreecommitdiffstatshomepage
path: root/src/mame/drivers/gp_2.cpp
diff options
context:
space:
mode:
author Ivan Vangelista <mesgnet@yahoo.it>2019-01-21 18:44:26 +0100
committer Ivan Vangelista <mesgnet@yahoo.it>2019-01-21 18:44:26 +0100
commit53d99d4190039db893bed8250e88301a7697b551 (patch)
tree4aef68da2af56063d6547311b7a47f00e33492b8 /src/mame/drivers/gp_2.cpp
parent29729f9ed6233d7740debda514cb6fa7c510bc86 (diff)
devices\machine\ticket, timer: removed MCFG macros (nw)
Diffstat (limited to 'src/mame/drivers/gp_2.cpp')
-rw-r--r--src/mame/drivers/gp_2.cpp7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/mame/drivers/gp_2.cpp b/src/mame/drivers/gp_2.cpp
index 6056960d33a..394f44f5405 100644
--- a/src/mame/drivers/gp_2.cpp
+++ b/src/mame/drivers/gp_2.cpp
@@ -582,7 +582,8 @@ static const z80_daisy_config daisy_chain[] =
{ nullptr }
};
-MACHINE_CONFIG_START(gp_2_state::gp_2)
+void gp_2_state::gp_2(machine_config &config)
+{
/* basic machine hardware */
Z80(config, m_maincpu, 2457600);
m_maincpu->set_addrmap(AS_PROGRAM, &gp_2_state::gp_2_map);
@@ -605,8 +606,8 @@ MACHINE_CONFIG_START(gp_2_state::gp_2)
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_2_state, zero_timer, attotime::from_hz(120)) // mains freq*2
-MACHINE_CONFIG_END
+ TIMER(config, "gp1").configure_periodic(FUNC(gp_2_state::zero_timer), attotime::from_hz(120)); // mains freq*2
+}
/*-------------------------------------------------------------------
/ Agents 777 (November 1984) - Model #770