summaryrefslogtreecommitdiffstatshomepage
path: root/src/devices/machine/busmouse.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/devices/machine/busmouse.cpp')
-rw-r--r--src/devices/machine/busmouse.cpp9
1 files changed, 2 insertions, 7 deletions
diff --git a/src/devices/machine/busmouse.cpp b/src/devices/machine/busmouse.cpp
index 2c06045d127..285e62051b4 100644
--- a/src/devices/machine/busmouse.cpp
+++ b/src/devices/machine/busmouse.cpp
@@ -24,8 +24,6 @@
#include "machine/i8255.h"
-#define LOG_GENERAL (1U << 0)
-
//#define VERBOSE (LOG_GENERAL)
//#define LOG_OUTPUT_FUNC printf
#include "logmacro.h"
@@ -141,10 +139,7 @@ void bus_mouse_device::device_add_mconfig(machine_config &config)
void bus_mouse_device::device_start()
{
- // resolve callbacks
- m_write_extint.resolve_safe();
-
- m_irq_timer = timer_alloc(0);
+ m_irq_timer = timer_alloc(FUNC(bus_mouse_device::irq_timer_tick), this);
}
@@ -165,7 +160,7 @@ void bus_mouse_device::device_reset()
LOG("irq rate: %d Hz\n", hz);
}
-void bus_mouse_device::device_timer(emu_timer &timer, device_timer_id id, int param, void *ptr)
+TIMER_CALLBACK_MEMBER(bus_mouse_device::irq_timer_tick)
{
irq = !irq;