summaryrefslogtreecommitdiffstatshomepage
path: root/src/mame/drivers/hornet.cpp
diff options
context:
space:
mode:
author mooglyguy <therealmogminer@gmail.com>2018-08-12 00:46:11 +0200
committer mooglyguy <therealmogminer@gmail.com>2018-08-12 00:46:49 +0200
commiteb9e2c20b18fc95fc4557293f69e45513e75786b (patch)
tree142a76e370661e442decd321d2529fce874fa1d7 /src/mame/drivers/hornet.cpp
parentfdd0b69a7fcd50ba85dae5f3e518ef9e89bea020 (diff)
-8364_paula, aakart, adc0808, adc083x, adc0844, adc1038, adc1213, akiko, am2847, am53cf96, am9519: Removed MCFG and old devcb. nw
Diffstat (limited to 'src/mame/drivers/hornet.cpp')
-rw-r--r--src/mame/drivers/hornet.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/mame/drivers/hornet.cpp b/src/mame/drivers/hornet.cpp
index 10a10c47acc..b51945dcf0d 100644
--- a/src/mame/drivers/hornet.cpp
+++ b/src/mame/drivers/hornet.cpp
@@ -434,7 +434,7 @@ private:
DECLARE_WRITE_LINE_MEMBER(voodoo_vblank_1);
DECLARE_WRITE16_MEMBER(soundtimer_en_w);
DECLARE_WRITE16_MEMBER(soundtimer_count_w);
- ADC12138_IPT_CONVERT_CB(adc12138_input_callback);
+ double adc12138_input_callback(uint8_t input);
DECLARE_WRITE8_MEMBER(jamma_jvs_w);
DECLARE_READ8_MEMBER(comm_eeprom_r);
DECLARE_WRITE8_MEMBER(comm_eeprom_w);
@@ -1052,7 +1052,7 @@ void hornet_state::machine_reset()
}
}
-ADC12138_IPT_CONVERT_CB(hornet_state::adc12138_input_callback)
+double hornet_state::adc12138_input_callback(uint8_t input)
{
int value = 0;
switch (input)
@@ -1118,8 +1118,8 @@ MACHINE_CONFIG_START(hornet_state::hornet)
MCFG_DEVICE_ADD("m48t58", M48T58, 0)
- MCFG_DEVICE_ADD("adc12138", ADC12138, 0)
- MCFG_ADC1213X_IPT_CONVERT_CB(hornet_state, adc12138_input_callback)
+ ADC12138(config, m_adc12138, 0);
+ m_adc12138->set_ipt_convert_callback(FUNC(hornet_state::adc12138_input_callback));
MCFG_DEVICE_ADD("konppc", KONPPC, 0)
MCFG_KONPPC_CGBOARD_NUMBER(1)