summaryrefslogtreecommitdiffstatshomepage
path: root/src/devices/machine/spg2xx_io.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/devices/machine/spg2xx_io.cpp')
-rw-r--r--src/devices/machine/spg2xx_io.cpp34
1 files changed, 6 insertions, 28 deletions
diff --git a/src/devices/machine/spg2xx_io.cpp b/src/devices/machine/spg2xx_io.cpp
index 13fa8a04c4f..9c930360eec 100644
--- a/src/devices/machine/spg2xx_io.cpp
+++ b/src/devices/machine/spg2xx_io.cpp
@@ -43,18 +43,18 @@ spg2xx_io_device::spg2xx_io_device(const machine_config &mconfig, device_type ty
m_porta_out(*this),
m_portb_out(*this),
m_portc_out(*this),
- m_porta_in(*this),
- m_portb_in(*this),
- m_portc_in(*this),
- m_adc_in(*this),
+ m_porta_in(*this, 0),
+ m_portb_in(*this, 0),
+ m_portc_in(*this, 0),
+ m_adc_in(*this, 0x0fff),
m_i2c_w(*this),
- m_i2c_r(*this),
+ m_i2c_r(*this, 0),
m_uart_tx(*this),
m_spi_tx(*this),
m_chip_sel(*this),
m_cpu(*this, finder_base::DUMMY_TAG),
m_screen(*this, finder_base::DUMMY_TAG),
- m_pal_read_cb(*this),
+ m_pal_read_cb(*this, 0),
m_timer_irq_cb(*this),
m_uart_adc_irq_cb(*this),
m_external_irq_cb(*this),
@@ -77,28 +77,6 @@ spg28x_io_device::spg28x_io_device(const machine_config &mconfig, const char *ta
void spg2xx_io_device::device_start()
{
- m_porta_out.resolve_safe();
- m_portb_out.resolve_safe();
- m_portc_out.resolve_safe();
- m_porta_in.resolve_safe(0);
- m_portb_in.resolve_safe(0);
- m_portc_in.resolve_safe(0);
- m_adc_in.resolve_all_safe(0x0fff);
- m_i2c_w.resolve_safe();
- m_i2c_r.resolve_safe(0);
- m_uart_tx.resolve_safe();
- m_spi_tx.resolve_safe();
- m_chip_sel.resolve_safe();
- m_pal_read_cb.resolve_safe(0);
-
- m_timer_irq_cb.resolve_safe();
- m_uart_adc_irq_cb.resolve_safe();
- m_external_irq_cb.resolve_safe();
- m_ffreq_tmr1_irq_cb.resolve_safe();
- m_ffreq_tmr2_irq_cb.resolve_safe();
-
- m_fiq_vector_w.resolve_safe();
-
m_tmb1 = timer_alloc(FUNC(spg2xx_io_device::tmb_timer_tick<0>), this);
m_tmb2 = timer_alloc(FUNC(spg2xx_io_device::tmb_timer_tick<1>), this);