summaryrefslogtreecommitdiffstats
path: root/src/mame/drivers/expro02.cpp
diff options
context:
space:
mode:
authorGravatarGravatar AJR <ajrhacker@users.noreply.github.com>2016-04-30 16:31:47 -0400
committerGravatarGravatar AJR <ajrhacker@users.noreply.github.com>2016-04-30 16:39:27 -0400
commitdafe4d8e22d41a6d2f79c1d1d076ca1a18291401 (patch) (github)
tree11a27122fbf7a667498a60c1270443e6c75c4e27 /src/mame/drivers/expro02.cpp
parenta717ba24ede14435f1c4f0dd15f76b2812db27b7 (diff)
downloadmame-dafe4d8e22d41a6d2f79c1d1d076ca1a18291401.tar.bz2
mame-dafe4d8e22d41a6d2f79c1d1d076ca1a18291401.zip
Make watchdog timer a separate device
- Separate watchdog implementation from running_machine (once again) and driver_device - Old-style methods, now hidden behind #ifdefs, will probably be safe to remove soon
Diffstat (limited to 'src/mame/drivers/expro02.cpp')
-rw-r--r--src/mame/drivers/expro02.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/mame/drivers/expro02.cpp b/src/mame/drivers/expro02.cpp
index 79549bfa123..362dccd324d 100644
--- a/src/mame/drivers/expro02.cpp
+++ b/src/mame/drivers/expro02.cpp
@@ -208,6 +208,7 @@ TODO:
#include "cpu/m68000/m68000.h"
#include "sound/okim6295.h"
#include "machine/kaneko_hit.h"
+#include "machine/watchdog.h"
#include "video/kaneko_tmap.h"
#include "video/kaneko_spr.h"
#include "includes/galpnipt.h"
@@ -940,6 +941,7 @@ static MACHINE_CONFIG_START( expro02, expro02_state )
/* arm watchdog */
+ MCFG_WATCHDOG_ADD("watchdog")
MCFG_WATCHDOG_TIME_INIT(attotime::from_seconds(3)) /* a guess, and certainly wrong */
/* sound hardware */
@@ -963,6 +965,7 @@ static MACHINE_CONFIG_DERIVED( comad, expro02 )
kaneko_view2_tilemap_device::set_invert_flip(*device, 1);
kaneko_view2_tilemap_device::set_offset(*device, -256, -216, 256, 224);
+ MCFG_WATCHDOG_MODIFY("watchdog")
MCFG_WATCHDOG_TIME_INIT(attotime::from_seconds(0)) /* a guess, and certainly wrong */
MACHINE_CONFIG_END