diff options
Diffstat (limited to 'src/devices/bus/a2bus/a2sd.cpp')
-rw-r--r-- | src/devices/bus/a2bus/a2sd.cpp | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/src/devices/bus/a2bus/a2sd.cpp b/src/devices/bus/a2bus/a2sd.cpp index 3f9bd439bc6..e415ece84bc 100644 --- a/src/devices/bus/a2bus/a2sd.cpp +++ b/src/devices/bus/a2bus/a2sd.cpp @@ -22,7 +22,6 @@ #include "emu.h" #include "a2sd.h" -#define LOG_GENERAL (1U << 0) #define LOG_SPI (1U << 1) //#define VERBOSE (LOG_COMMAND) @@ -101,7 +100,7 @@ a2bus_a2sd_device::a2bus_a2sd_device(const machine_config &mconfig, const char * void a2bus_a2sd_device::device_start() { - m_shift_timer = timer_alloc(0); + m_shift_timer = timer_alloc(FUNC(a2bus_a2sd_device::shift_tick), this); save_item(NAME(m_datain)); save_item(NAME(m_in_latch)); @@ -119,7 +118,7 @@ void a2bus_a2sd_device::device_reset() m_sdcard->spi_clock_w(CLEAR_LINE); } -void a2bus_a2sd_device::device_timer(emu_timer &timer, device_timer_id id, int param, void *ptr) +TIMER_CALLBACK_MEMBER(a2bus_a2sd_device::shift_tick) { LOGMASKED(LOG_SPI, ">>>>>>> SHIFT %d (%c)\n", m_shift_count, (m_shift_count & 1) ? 'L' : 'S'); if (!(m_shift_count & 1)) @@ -238,7 +237,7 @@ void a2bus_a2sd_device::write_c0nx(u8 offset, u8 data) m_c0n3 |= (data & 0x91); m_sdcard->spi_ss_w(BIT(data, C0N3_BIT_SS)); - LOGMASKED(LOG_GENERAL, "/SS is %x\n", BIT(data, C0N3_BIT_SS)); + LOG("/SS is %x\n", BIT(data, C0N3_BIT_SS)); break; default: |