From 32661fd7288e82b7c9b2abc4fa666810e90856f8 Mon Sep 17 00:00:00 2001 From: DavidHaywood <28625134+DavidHaywood@users.noreply.github.com> Date: Mon, 25 Mar 2019 20:42:37 +0000 Subject: [PATCH] not using these (nw) --- src/devices/machine/spg110.cpp | 6 ------ src/devices/machine/spg110.h | 15 --------------- 2 files changed, 21 deletions(-) diff --git a/src/devices/machine/spg110.cpp b/src/devices/machine/spg110.cpp index ae7390ef796..b312b0c90aa 100644 --- a/src/devices/machine/spg110.cpp +++ b/src/devices/machine/spg110.cpp @@ -33,9 +33,6 @@ spg110_device::spg110_device(const machine_config &mconfig, device_type type, co , m_portb_in(*this) , m_portc_in(*this) , m_adc_in{{*this}, {*this}} - , m_eeprom_w(*this) - , m_eeprom_r(*this) - , m_uart_tx(*this) , m_chip_sel(*this) { } @@ -233,9 +230,6 @@ void spg110_device::configure_spg_io(spg2xx_io_device* io) io->portc_out().set(FUNC(spg110_device::portc_w)); io->adc_in<0>().set(FUNC(spg110_device::adc_r<0>)); io->adc_in<1>().set(FUNC(spg110_device::adc_r<1>)); - io->eeprom_w().set(FUNC(spg110_device::eepromx_w)); - io->eeprom_r().set(FUNC(spg110_device::eepromx_r)); - io->uart_tx().set(FUNC(spg110_device::tx_w)); io->chip_select().set(FUNC(spg110_device::cs_w)); // io->pal_read_callback().set(FUNC(spg110_device::get_pal_r)); // io->write_timer_irq_callback().set(FUNC(spg110_device::timerirq_w)); diff --git a/src/devices/machine/spg110.h b/src/devices/machine/spg110.h index f883bf02cd0..64464e1ba9d 100644 --- a/src/devices/machine/spg110.h +++ b/src/devices/machine/spg110.h @@ -43,11 +43,6 @@ public: template auto adc_in() { return m_adc_in[Line].bind(); } - auto eeprom_w() { return m_eeprom_w.bind(); } - auto eeprom_r() { return m_eeprom_r.bind(); } - - auto uart_tx() { return m_uart_tx.bind(); } - auto chip_select() { return m_chip_sel.bind(); } protected: @@ -205,11 +200,6 @@ private: devcb_read16 m_adc_in[2]; - devcb_write8 m_eeprom_w; - devcb_read8 m_eeprom_r; - - devcb_write8 m_uart_tx; - devcb_write8 m_chip_sel; DECLARE_READ16_MEMBER(porta_r) { return m_porta_in(); }; @@ -219,11 +209,6 @@ private: DECLARE_WRITE16_MEMBER(portb_w) { m_portb_out(offset, data, mem_mask); }; DECLARE_WRITE16_MEMBER(portc_w) { m_portc_out(offset, data, mem_mask); }; template DECLARE_READ16_MEMBER(adc_r) { return m_adc_in[Line](); }; - - DECLARE_WRITE8_MEMBER(eepromx_w) { m_eeprom_w(offset, data, mem_mask); }; - DECLARE_READ8_MEMBER(eepromx_r) { return m_eeprom_r(); }; - - DECLARE_WRITE8_MEMBER(tx_w) { m_uart_tx(offset, data, mem_mask); }; DECLARE_WRITE8_MEMBER(cs_w) { m_chip_sel(offset, data, mem_mask); }; DECLARE_READ16_MEMBER(get_pal_r) { return 0; /*m_pal_flag;*/ }; void configure_spg_io(spg2xx_io_device* io);