summaryrefslogtreecommitdiffstatshomepage
path: root/src/devices/machine/upd4992.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/devices/machine/upd4992.cpp')
-rw-r--r--src/devices/machine/upd4992.cpp14
1 files changed, 4 insertions, 10 deletions
diff --git a/src/devices/machine/upd4992.cpp b/src/devices/machine/upd4992.cpp
index 60a2eece92b..79f23784c82 100644
--- a/src/devices/machine/upd4992.cpp
+++ b/src/devices/machine/upd4992.cpp
@@ -13,8 +13,7 @@
***************************************************************************/
#include "emu.h"
-#include "machine/upd4992.h"
-
+#include "upd4992.h"
//**************************************************************************
@@ -58,19 +57,14 @@ void upd4992_device::device_validity_check(validity_checker &valid) const
void upd4992_device::device_start()
{
- m_timer_clock = timer_alloc(TIMER_CLOCK);
+ m_timer_clock = timer_alloc(FUNC(upd4992_device::clock_tick), this);
m_timer_clock->adjust(attotime::from_hz(clock() / 32768), 0, attotime::from_hz(clock() / 32768));
}
-void upd4992_device::device_timer(emu_timer &timer, device_timer_id id, int param, void *ptr)
+TIMER_CALLBACK_MEMBER(upd4992_device::clock_tick)
{
- switch (id)
- {
- case TIMER_CLOCK:
- advance_seconds();
- break;
- }
+ advance_seconds();
}
//-------------------------------------------------