summaryrefslogtreecommitdiffstatshomepage
path: root/src/mame/drivers/mc1000.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mame/drivers/mc1000.cpp')
-rw-r--r--src/mame/drivers/mc1000.cpp14
1 files changed, 8 insertions, 6 deletions
diff --git a/src/mame/drivers/mc1000.cpp b/src/mame/drivers/mc1000.cpp
index 47af53b1a2b..adf287844a5 100644
--- a/src/mame/drivers/mc1000.cpp
+++ b/src/mame/drivers/mc1000.cpp
@@ -550,12 +550,14 @@ MACHINE_CONFIG_START(mc1000_state::mc1000)
MCFG_DEVICE_IO_MAP(mc1000_io)
/* timers */
- MCFG_TIMER_DRIVER_ADD_PERIODIC("ne555clear", mc1000_state, ne555_tick, attotime::from_hz(MC1000_NE555_FREQ))
- MCFG_TIMER_PARAM(CLEAR_LINE)
-
- MCFG_TIMER_DRIVER_ADD_PERIODIC("ne555assert", mc1000_state, ne555_tick, attotime::from_hz(MC1000_NE555_FREQ))
- MCFG_TIMER_START_DELAY(attotime::from_hz(MC1000_NE555_FREQ * 100 / MC1000_NE555_DUTY_CYCLE))
- MCFG_TIMER_PARAM(ASSERT_LINE)
+ timer_device &ne555clear(TIMER(config, "ne555clear"));
+ ne555clear.configure_periodic(FUNC(mc1000_state::ne555_tick), attotime::from_hz(MC1000_NE555_FREQ));
+ ne555clear.config_param(CLEAR_LINE);
+
+ timer_device &ne555assert(TIMER(config, "ne555assert"));
+ ne555assert.configure_periodic(FUNC(mc1000_state::ne555_tick), attotime::from_hz(MC1000_NE555_FREQ));
+ ne555assert.set_start_delay(attotime::from_hz(MC1000_NE555_FREQ * 100 / MC1000_NE555_DUTY_CYCLE));
+ ne555assert.config_param(ASSERT_LINE);
/* video hardware */
SCREEN(config, SCREEN_TAG, SCREEN_TYPE_RASTER);