diff options
Diffstat (limited to 'src/mame/drivers/groundfx.cpp')
-rw-r--r-- | src/mame/drivers/groundfx.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/mame/drivers/groundfx.cpp b/src/mame/drivers/groundfx.cpp index a27d9d81e4d..a31365ff99f 100644 --- a/src/mame/drivers/groundfx.cpp +++ b/src/mame/drivers/groundfx.cpp @@ -244,12 +244,12 @@ MACHINE_CONFIG_START(groundfx_state::groundfx) MCFG_DEVICE_ADD("eeprom", EEPROM_SERIAL_93C46_16BIT) - MCFG_DEVICE_ADD("adc", ADC0809, 500000) // unknown clock - MCFG_ADC0808_EOC_FF_CB(INPUTLINE("maincpu", 5)) - MCFG_ADC0808_IN0_CB(CONSTANT(0)) // unknown - MCFG_ADC0808_IN1_CB(CONSTANT(0)) // unknown (used to be labeled 'volume' - but doesn't seem to affect it - MCFG_ADC0808_IN2_CB(IOPORT("WHEEL")) - MCFG_ADC0808_IN3_CB(IOPORT("ACCEL")) + adc0809_device &adc(ADC0809(config, "adc", 500000)); // unknown clock + adc.eoc_ff_callback().set_inputline("maincpu", 5); + adc.in_callback<0>().set_constant(0); // unknown + adc.in_callback<1>().set_constant(0); // unknown (used to be labeled 'volume' - but doesn't seem to affect it + adc.in_callback<2>().set_ioport("WHEEL"); + adc.in_callback<3>().set_ioport("ACCEL"); tc0510nio_device &tc0510nio(TC0510NIO(config, "tc0510nio", 0)); tc0510nio.read_2_callback().set_ioport("BUTTONS"); |