summaryrefslogtreecommitdiffstatshomepage
path: root/src/mame/drivers/thunderx.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mame/drivers/thunderx.cpp')
-rw-r--r--src/mame/drivers/thunderx.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/mame/drivers/thunderx.cpp b/src/mame/drivers/thunderx.cpp
index 37dee298876..7c34f74d280 100644
--- a/src/mame/drivers/thunderx.cpp
+++ b/src/mame/drivers/thunderx.cpp
@@ -35,7 +35,7 @@
#include "emu.h"
#include "cpu/z80/z80.h"
#include "cpu/m6809/konami.h" /* for the callback and the firq irq definition */
-
+#include "machine/watchdog.h"
#include "sound/2151intf.h"
#include "includes/konamipt.h"
#include "includes/thunderx.h"
@@ -403,7 +403,7 @@ static ADDRESS_MAP_START( scontra_map, AS_PROGRAM, 8, thunderx_state )
AM_RANGE(0x1f80, 0x1f80) AM_WRITE(scontra_bankswitch_w) /* bankswitch control + coin counters */
AM_RANGE(0x1f84, 0x1f84) AM_WRITE(soundlatch_byte_w)
AM_RANGE(0x1f88, 0x1f88) AM_WRITE(sh_irqtrigger_w) /* cause interrupt on audio CPU */
- AM_RANGE(0x1f8c, 0x1f8c) AM_WRITE(watchdog_reset_w)
+ AM_RANGE(0x1f8c, 0x1f8c) AM_DEVWRITE("watchdog", watchdog_timer_device, reset_w)
AM_RANGE(0x1f90, 0x1f90) AM_READ_PORT("SYSTEM")
AM_RANGE(0x1f91, 0x1f91) AM_READ_PORT("P1")
AM_RANGE(0x1f92, 0x1f92) AM_READ_PORT("P2")
@@ -644,6 +644,8 @@ static MACHINE_CONFIG_START( scontra, thunderx_state )
MCFG_ADDRESS_MAP_BANK_ADDRBUS_WIDTH(12)
MCFG_ADDRESS_MAP_BANK_STRIDE(0x0800)
+ MCFG_WATCHDOG_ADD("watchdog")
+
/* video hardware */
MCFG_SCREEN_ADD("screen", RASTER)
MCFG_SCREEN_REFRESH_RATE(59.17) /* verified on pcb */