diff options
| author | 2016-03-07 14:45:58 +0100 | |
|---|---|---|
| committer | 2016-03-07 14:45:58 +0100 | |
| commit | 8ea9ff6a7afdcc5ca5e48351feee06e43d7fc4ee (patch) | |
| tree | d3dfa7422f877f4902ed4e3b3f94a5d15cc41c58 /src/devices/machine/f3853.cpp | |
| parent | fea09343fb83663225a5099f2fb857e264588be9 (diff) | |
TIMER_CALLBACK to TIMER_CALLBACK_MEMBER (nw)
Diffstat (limited to 'src/devices/machine/f3853.cpp')
| -rw-r--r-- | src/devices/machine/f3853.cpp | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/src/devices/machine/f3853.cpp b/src/devices/machine/f3853.cpp index a37e1b7e59b..49deb99f073 100644 --- a/src/devices/machine/f3853.cpp +++ b/src/devices/machine/f3853.cpp @@ -77,7 +77,7 @@ void f3853_device::device_start() m_interrupt_req_cb.bind_relative_to(*owner()); - m_timer = machine().scheduler().timer_alloc(FUNC(f3853_timer_callback), (void *)this ); + m_timer = machine().scheduler().timer_alloc(timer_expired_delegate(FUNC(f3853_device::timer_callback),this)); save_item(NAME(m_high) ); save_item(NAME(m_low) ); @@ -128,13 +128,7 @@ void f3853_device::timer_start(UINT8 value) m_timer->adjust(period); } - -TIMER_CALLBACK( f3853_device::f3853_timer_callback ) -{ - reinterpret_cast<f3853_device*>(ptr)->timer(); -} - -void f3853_device::timer() +TIMER_CALLBACK_MEMBER(f3853_device::timer_callback) { if(m_timer_enable) { |
