diff options
Diffstat (limited to 'src/mame/drivers/hp2640.cpp')
-rw-r--r-- | src/mame/drivers/hp2640.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/mame/drivers/hp2640.cpp b/src/mame/drivers/hp2640.cpp index adf45587cff..8f0059cdcc2 100644 --- a/src/mame/drivers/hp2640.cpp +++ b/src/mame/drivers/hp2640.cpp @@ -971,8 +971,8 @@ MACHINE_CONFIG_START(hp2645_state::hp2645) MCFG_DEVICE_IO_MAP(cpu_io_map) MCFG_DEVICE_IRQ_ACKNOWLEDGE_DRIVER(hp2645_state , irq_callback) - MCFG_TIMER_DRIVER_ADD("timer_10ms" , hp2645_state , timer_10ms_exp) - MCFG_TIMER_DRIVER_ADD("timer_cursor_blink_inh" , hp2645_state , timer_cursor_blink_inh) + TIMER(config, m_timer_10ms).configure_generic(FUNC(hp2645_state::timer_10ms_exp)); + TIMER(config, m_timer_cursor_blink_inh).configure_generic(FUNC(hp2645_state::timer_cursor_blink_inh)); MCFG_SCREEN_ADD_MONOCHROME("screen" , RASTER , rgb_t::white()) // Actual pixel clock is half this value: 21.06 MHz @@ -982,7 +982,7 @@ MACHINE_CONFIG_START(hp2645_state::hp2645) VIDEO_TOT_COLS * VIDEO_CHAR_WIDTH * 2 , 0 , VIDEO_VIS_COLS * VIDEO_CHAR_WIDTH * 2 , VIDEO_TOT_ROWS * VIDEO_CHAR_HEIGHT , 0 , VIDEO_VIS_ROWS * VIDEO_CHAR_HEIGHT) MCFG_SCREEN_UPDATE_DRIVER(hp2645_state , screen_update) - MCFG_TIMER_DRIVER_ADD_SCANLINE("scantimer", hp2645_state, scanline_timer, "screen", 0, 1) + TIMER(config, "scantimer").configure_scanline(FUNC(hp2645_state::scanline_timer), "screen", 0, 1); PALETTE(config, m_palette, palette_device::MONOCHROME_HIGHLIGHT); config.set_default_layout(layout_hp2640); @@ -999,7 +999,7 @@ MACHINE_CONFIG_START(hp2645_state::hp2645) // Beep SPEAKER(config, "mono").front_center(); BEEP(config, m_beep, BEEP_FREQUENCY).add_route(ALL_OUTPUTS, "mono", 1.00); - MCFG_TIMER_DRIVER_ADD("timer_beep" , hp2645_state , timer_beep_exp) + TIMER(config, m_timer_beep).configure_generic(FUNC(hp2645_state::timer_beep_exp)); MACHINE_CONFIG_END |