diff options
Diffstat (limited to 'src/devices/bus/pet/c2n.cpp')
-rw-r--r-- | src/devices/bus/pet/c2n.cpp | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/devices/bus/pet/c2n.cpp b/src/devices/bus/pet/c2n.cpp index e7ac6e27c28..4365f15671d 100644 --- a/src/devices/bus/pet/c2n.cpp +++ b/src/devices/bus/pet/c2n.cpp @@ -9,6 +9,8 @@ #include "emu.h" #include "c2n.h" +#include "formats/cbm_tap.h" + //************************************************************************** @@ -84,16 +86,16 @@ c1531_device::c1531_device(const machine_config &mconfig, const char *tag, devic void c2n_device::device_start() { // allocate timers - m_read_timer = timer_alloc(); + m_read_timer = timer_alloc(FUNC(c2n_device::read_tick), this); m_read_timer->adjust(attotime::from_hz(44100), 0, attotime::from_hz(44100)); } //------------------------------------------------- -// device_timer - handler timer events +// read_tick - periodically read the datasette //------------------------------------------------- -void c2n_device::device_timer(emu_timer &timer, device_timer_id id, int param, void *ptr) +TIMER_CALLBACK_MEMBER(c2n_device::read_tick) { if (m_motor) { |