summaryrefslogtreecommitdiffstatshomepage
path: root/src/mame/drivers/polyplay.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/mame/drivers/polyplay.c')
-rw-r--r--src/mame/drivers/polyplay.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/mame/drivers/polyplay.c b/src/mame/drivers/polyplay.c
index 1298ca9b1b5..a0ce2240ff2 100644
--- a/src/mame/drivers/polyplay.c
+++ b/src/mame/drivers/polyplay.c
@@ -97,7 +97,7 @@ static int channel2_const;
/* timer handling */
static TIMER_DEVICE_CALLBACK( polyplay_timer_callback );
-static running_device* polyplay_timer;
+static timer_device* polyplay_timer;
static WRITE8_HANDLER( polyplay_start_timer2 );
static WRITE8_HANDLER( polyplay_sound_channel );
@@ -123,7 +123,7 @@ static MACHINE_RESET( polyplay )
polyplay_set_channel2(0);
polyplay_play_channel2(machine, 0);
- polyplay_timer = devtag_get_device(machine, "timer");
+ polyplay_timer = machine->device<timer_device>("timer");
}
@@ -234,10 +234,10 @@ static WRITE8_HANDLER( polyplay_sound_channel )
static WRITE8_HANDLER( polyplay_start_timer2 )
{
if (data == 0x03)
- timer_device_adjust_oneshot(polyplay_timer, attotime_never, 0);
+ polyplay_timer->reset();
if (data == 0xb5)
- timer_device_adjust_periodic(polyplay_timer, ATTOTIME_IN_HZ(40), 0, ATTOTIME_IN_HZ(40));
+ polyplay_timer->adjust(ATTOTIME_IN_HZ(40), 0, ATTOTIME_IN_HZ(40));
}
static READ8_HANDLER( polyplay_random_read )
@@ -359,7 +359,7 @@ ROM_END
static TIMER_DEVICE_CALLBACK( polyplay_timer_callback )
{
- cputag_set_input_line_and_vector(timer->machine, "maincpu", 0, HOLD_LINE, 0x4c);
+ cputag_set_input_line_and_vector(timer.machine, "maincpu", 0, HOLD_LINE, 0x4c);
}
/* game driver */