From 23c26cc538e6cd5cc3455e6aec25885775f1948f Mon Sep 17 00:00:00 2001 From: Robbbert Date: Wed, 19 Feb 2020 12:39:27 +1100 Subject: (nw) spg2xx: fixed 6 compilation errors --- src/devices/machine/i2cmem.h | 1 + src/devices/machine/spg2xx_io.cpp | 2 +- src/mame/drivers/spg2xx_jakks.cpp | 2 +- src/mame/drivers/spg2xx_jakks_tvtouch.cpp | 6 +++--- 4 files changed, 6 insertions(+), 5 deletions(-) diff --git a/src/devices/machine/i2cmem.h b/src/devices/machine/i2cmem.h index f9cc267b4b3..0cfccc6f9c2 100644 --- a/src/devices/machine/i2cmem.h +++ b/src/devices/machine/i2cmem.h @@ -116,6 +116,7 @@ DECLARE_I2C_DEVICE(24c64); DECLARE_DEVICE_TYPE(I2CMEM, i2cmem_device) DECLARE_DEVICE_TYPE(I2C_X2404P, i2c_x2404p_device) DECLARE_DEVICE_TYPE(I2C_24C01, i2c_24c01_device) +DECLARE_DEVICE_TYPE(I2C_24C02, i2c_24c02_device) DECLARE_DEVICE_TYPE(I2C_24C04, i2c_24c04_device) DECLARE_DEVICE_TYPE(I2C_24C08, i2c_24c08_device) DECLARE_DEVICE_TYPE(I2C_24C16, i2c_24c16_device) diff --git a/src/devices/machine/spg2xx_io.cpp b/src/devices/machine/spg2xx_io.cpp index b3a2ecb4884..0f89a0d3d4f 100644 --- a/src/devices/machine/spg2xx_io.cpp +++ b/src/devices/machine/spg2xx_io.cpp @@ -1094,7 +1094,7 @@ WRITE16_MEMBER(spg2xx_io_device::io_extended_w) case REG_SPI_MISC: { - static const char* const s_spi_clock[8] = { "SYSCLK/2" , "SYSCLK/4", "SYSCLK/8", "SYSCLK/16", "SYSCLK/32", "SYSCLK/64", "SYSCLK/128", "Reserved" }; + //static const char* const s_spi_clock[8] = { "SYSCLK/2" , "SYSCLK/4", "SYSCLK/8", "SYSCLK/16", "SYSCLK/32", "SYSCLK/64", "SYSCLK/128", "Reserved" }; LOGMASKED(LOG_SIO, "%s: io_r: SPI Misc. = %04x (Over:%d, SmartInt:%d, Busy:%d, RxFull:%d, RxNotEmpty:%d, TxNotFull:%d, TxEmpty:%d)\n", machine().describe_context(), data, BIT(data, 9), BIT(data, 8), BIT(data, 4), BIT(data, 3), BIT(data, 2), BIT(data, 1), BIT(data, 0)); m_io_regs[offset] &= ~0x0300; diff --git a/src/mame/drivers/spg2xx_jakks.cpp b/src/mame/drivers/spg2xx_jakks.cpp index 1c7b262dad4..5f7857d469d 100644 --- a/src/mame/drivers/spg2xx_jakks.cpp +++ b/src/mame/drivers/spg2xx_jakks.cpp @@ -16,7 +16,7 @@ public: void walle(machine_config& config); private: - DECLARE_WRITE16_MEMBER(portc_w); + DECLARE_WRITE16_MEMBER(portc_w) override; }; WRITE16_MEMBER(jakks_state::portc_w) diff --git a/src/mame/drivers/spg2xx_jakks_tvtouch.cpp b/src/mame/drivers/spg2xx_jakks_tvtouch.cpp index 66d1854d32c..dda27e78445 100644 --- a/src/mame/drivers/spg2xx_jakks_tvtouch.cpp +++ b/src/mame/drivers/spg2xx_jakks_tvtouch.cpp @@ -17,9 +17,9 @@ private: DECLARE_READ16_MEMBER(porta_r); DECLARE_READ16_MEMBER(portb_r); DECLARE_READ16_MEMBER(portc_r); - DECLARE_WRITE16_MEMBER(porta_w); - DECLARE_WRITE16_MEMBER(portb_w); - DECLARE_WRITE16_MEMBER(portc_w); + DECLARE_WRITE16_MEMBER(porta_w) override; + DECLARE_WRITE16_MEMBER(portb_w) override; + DECLARE_WRITE16_MEMBER(portc_w) override; uint16_t m_porta_latch; uint16_t m_portb_latch; -- cgit v1.2.3