summaryrefslogtreecommitdiffstatshomepage
path: root/src/mame/drivers/groundfx.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/mame/drivers/groundfx.c')
-rw-r--r--src/mame/drivers/groundfx.c24
1 files changed, 5 insertions, 19 deletions
diff --git a/src/mame/drivers/groundfx.c b/src/mame/drivers/groundfx.c
index 83c0e1180b3..af14977bb29 100644
--- a/src/mame/drivers/groundfx.c
+++ b/src/mame/drivers/groundfx.c
@@ -111,20 +111,6 @@ void groundfx_state::device_timer(emu_timer &timer, device_timer_id id, int para
/**********************************************************
- EPROM
-**********************************************************/
-
-static const serial_eeprom_interface groundfx_eeprom_interface =
-{
- "0110", /* read command */
- "0101", /* write command */
- "0111", /* erase command */
- "0100000000", /* unlock command */
- "0100110000", /* lock command */
-};
-
-
-/**********************************************************
GAME INPUTS
**********************************************************/
@@ -249,7 +235,7 @@ static INPUT_PORTS_START( groundfx )
PORT_BIT( 0x00000010, IP_ACTIVE_LOW, IPT_UNUSED )
PORT_BIT( 0x00000020, IP_ACTIVE_LOW, IPT_UNUSED )
PORT_BIT( 0x00000040, IP_ACTIVE_LOW, IPT_UNUSED )
- PORT_BIT( 0x00000080, IP_ACTIVE_HIGH, IPT_SPECIAL ) PORT_READ_LINE_DEVICE_MEMBER("eeprom", serial_eeprom_device, read_bit)
+ PORT_BIT( 0x00000080, IP_ACTIVE_HIGH, IPT_SPECIAL ) PORT_READ_LINE_DEVICE_MEMBER("eeprom", eeprom_serial_93cxx_device, do_read)
PORT_BIT( 0x00000100, IP_ACTIVE_LOW, IPT_BUTTON3 ) /* shift hi */
PORT_BIT( 0x00000200, IP_ACTIVE_LOW, IPT_BUTTON1 ) /* brake */
PORT_BIT( 0x00000400, IP_ACTIVE_LOW, IPT_UNUSED )
@@ -261,9 +247,9 @@ static INPUT_PORTS_START( groundfx )
PORT_BIT( 0xffff0000, IP_ACTIVE_LOW, IPT_UNUSED )
PORT_START( "EEPROMOUT" )
- PORT_BIT( 0x00000010, IP_ACTIVE_LOW, IPT_OUTPUT ) PORT_WRITE_LINE_DEVICE_MEMBER("eeprom", serial_eeprom_device, set_cs_line)
- PORT_BIT( 0x00000020, IP_ACTIVE_HIGH, IPT_OUTPUT ) PORT_WRITE_LINE_DEVICE_MEMBER("eeprom", serial_eeprom_device, set_clock_line)
- PORT_BIT( 0x00000040, IP_ACTIVE_HIGH, IPT_OUTPUT ) PORT_WRITE_LINE_DEVICE_MEMBER("eeprom", serial_eeprom_device, write_bit)
+ PORT_BIT( 0x00000010, IP_ACTIVE_HIGH, IPT_OUTPUT ) PORT_WRITE_LINE_DEVICE_MEMBER("eeprom", eeprom_serial_93cxx_device, cs_write)
+ PORT_BIT( 0x00000020, IP_ACTIVE_HIGH, IPT_OUTPUT ) PORT_WRITE_LINE_DEVICE_MEMBER("eeprom", eeprom_serial_93cxx_device, clk_write)
+ PORT_BIT( 0x00000040, IP_ACTIVE_HIGH, IPT_OUTPUT ) PORT_WRITE_LINE_DEVICE_MEMBER("eeprom", eeprom_serial_93cxx_device, di_write)
PORT_START("SYSTEM")
PORT_SERVICE_NO_TOGGLE( 0x00000001, IP_ACTIVE_LOW )
@@ -370,7 +356,7 @@ static MACHINE_CONFIG_START( groundfx, groundfx_state )
MCFG_CPU_PROGRAM_MAP(groundfx_map)
MCFG_CPU_VBLANK_INT_DRIVER("screen", groundfx_state, groundfx_interrupt)
- MCFG_SERIAL_EEPROM_ADD("eeprom", 64, 16, groundfx_eeprom_interface)
+ MCFG_EEPROM_SERIAL_93C46_ADD("eeprom")
/* video hardware */
MCFG_SCREEN_ADD("screen", RASTER)