diff options
author | Aaron Giles <aaron@aarongiles.com> | 2013-07-27 03:28:25 +0000 |
---|---|---|
committer | Aaron Giles <aaron@aarongiles.com> | 2013-07-27 03:28:25 +0000 |
commit | b963a48cdf1e6f37a6bb64a07dde9428e827e0b5 (patch) | |
tree | 9b6f8b635f9ee9c4faa6603bcac75a4211edbdff /src/mame/drivers/plygonet.c | |
parent | 3f994bce85df3e31e127ed434e8bf3836ae5e3c7 (diff) |
Split eeprom.c into a base class base_eeprom_device and a serial-specific
subclass serial_eeprom_device. Moved the latter into its own file
eepromser.c and significantly cleaned up/simplified the code. The new
code should be functionally the same as the previous code, but expect that
to change soon. As a side-effect, the size and bus width of the EEPROM is now
specified in the ADD macro rather than in the interface structure.
Diffstat (limited to 'src/mame/drivers/plygonet.c')
-rw-r--r-- | src/mame/drivers/plygonet.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/mame/drivers/plygonet.c b/src/mame/drivers/plygonet.c index 0f50da897f6..254995ddc60 100644 --- a/src/mame/drivers/plygonet.c +++ b/src/mame/drivers/plygonet.c @@ -67,15 +67,13 @@ #include "cpu/z80/z80.h" #include "cpu/dsp56k/dsp56k.h" #include "sound/k054539.h" -#include "machine/eeprom.h" +#include "machine/eepromser.h" #include "includes/plygonet.h" enum { BANK_GROUP_A, BANK_GROUP_B, INVALID_BANK_GROUP }; static const serial_eeprom_interface eeprom_intf = { - 9, // address bits - 8, // data bits "*110", // read command "*101", // write command "*111", // erase command @@ -671,7 +669,7 @@ static MACHINE_CONFIG_START( plygonet, polygonet_state ) MCFG_QUANTUM_PERFECT_CPU("maincpu") /* TODO: TEMPORARY! UNTIL A MORE LOCALIZED SYNC CAN BE MADE */ - MCFG_SERIAL_EEPROM_ADD("eeprom", eeprom_intf) + MCFG_SERIAL_EEPROM_ADD("eeprom", 512, 8, eeprom_intf) MCFG_GFXDECODE(plygonet) |