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/unico.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/unico.c')
-rw-r--r-- | src/mame/drivers/unico.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/mame/drivers/unico.c b/src/mame/drivers/unico.c index 1875f85198d..1a0a9b8677f 100644 --- a/src/mame/drivers/unico.c +++ b/src/mame/drivers/unico.c @@ -24,7 +24,7 @@ Year + Game PCB Notes #include "emu.h" #include "cpu/m68000/m68000.h" -#include "machine/eeprom.h" +#include "machine/eepromser.h" #include "includes/unico.h" #include "sound/2151intf.h" #include "sound/3812intf.h" @@ -569,8 +569,6 @@ MACHINE_RESET_MEMBER(unico_state,unico) static const serial_eeprom_interface zeropnt2_eeprom_interface = { - 7, // address bits 7 - 8, // data bits 8 "*110", // read 1 10 aaaaaaa "*101", // write 1 01 aaaaaaa dddddddd "*111", // erase 1 11 aaaaaaa @@ -679,7 +677,7 @@ static MACHINE_CONFIG_START( zeropnt2, unico_state ) MCFG_MACHINE_RESET_OVERRIDE(unico_state,zeropt) - MCFG_SERIAL_EEPROM_ADD("eeprom", zeropnt2_eeprom_interface) + MCFG_SERIAL_EEPROM_ADD("eeprom", 128, 8, zeropnt2_eeprom_interface) /* video hardware */ MCFG_SCREEN_ADD("screen", RASTER) |