summaryrefslogtreecommitdiffstatshomepage
path: root/src/mame/drivers/atarifb.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mame/drivers/atarifb.cpp')
-rw-r--r--src/mame/drivers/atarifb.cpp10
1 files changed, 6 insertions, 4 deletions
diff --git a/src/mame/drivers/atarifb.cpp b/src/mame/drivers/atarifb.cpp
index 46b9bf81863..64572ecbc7d 100644
--- a/src/mame/drivers/atarifb.cpp
+++ b/src/mame/drivers/atarifb.cpp
@@ -107,6 +107,7 @@
#include "emu.h"
#include "cpu/m6502/m6502.h"
#include "includes/atarifb.h"
+#include "machine/watchdog.h"
#include "sound/discrete.h"
#include "atarifb.lh"
@@ -163,7 +164,7 @@ static ADDRESS_MAP_START( atarifb_map, AS_PROGRAM, 8, atarifb_state )
AM_RANGE(0x3000, 0x3000) AM_NOP /* Interrupt Acknowledge */
AM_RANGE(0x4000, 0x4000) AM_READ(atarifb_in0_r)
AM_RANGE(0x4002, 0x4002) AM_READ(atarifb_in2_r)
- AM_RANGE(0x5000, 0x5000) AM_WRITE(watchdog_reset_w)
+ AM_RANGE(0x5000, 0x5000) AM_DEVWRITE("watchdog", watchdog_timer_device, reset_w)
AM_RANGE(0x6000, 0x7fff) AM_ROM
ADDRESS_MAP_END
@@ -184,7 +185,7 @@ static ADDRESS_MAP_START( atarifb4_map, AS_PROGRAM, 8, atarifb_state )
AM_RANGE(0x4000, 0x4000) AM_READ(atarifb4_in0_r)
AM_RANGE(0x4001, 0x4001) AM_READ_PORT("EXTRA")
AM_RANGE(0x4002, 0x4002) AM_READ(atarifb4_in2_r)
- AM_RANGE(0x5000, 0x5000) AM_WRITE(watchdog_reset_w)
+ AM_RANGE(0x5000, 0x5000) AM_DEVWRITE("watchdog", watchdog_timer_device, reset_w)
AM_RANGE(0x6000, 0x7fff) AM_ROM
ADDRESS_MAP_END
@@ -204,7 +205,7 @@ static ADDRESS_MAP_START( abaseb_map, AS_PROGRAM, 8, atarifb_state )
AM_RANGE(0x3000, 0x3000) AM_NOP /* Interrupt Acknowledge */
AM_RANGE(0x4000, 0x4000) AM_READ(atarifb_in0_r)
AM_RANGE(0x4002, 0x4002) AM_READ(atarifb_in2_r)
- AM_RANGE(0x5000, 0x5000) AM_WRITE(watchdog_reset_w)
+ AM_RANGE(0x5000, 0x5000) AM_DEVWRITE("watchdog", watchdog_timer_device, reset_w)
AM_RANGE(0x6000, 0x7fff) AM_ROM
ADDRESS_MAP_END
@@ -221,7 +222,7 @@ static ADDRESS_MAP_START( soccer_map, AS_PROGRAM, 8, atarifb_state )
AM_RANGE(0x1001, 0x1001) AM_WRITE(soccer_out1_w) /* OUT 1 */
AM_RANGE(0x1002, 0x1002) AM_WRITE(soccer_out2_w) /* OUT 2 */
AM_RANGE(0x1004, 0x1004) AM_WRITENOP /* Interrupt Acknowledge */
- AM_RANGE(0x1005, 0x1005) AM_WRITE(watchdog_reset_w)
+ AM_RANGE(0x1005, 0x1005) AM_DEVWRITE("watchdog", watchdog_timer_device, reset_w)
AM_RANGE(0x1800, 0x1800) AM_READ(atarifb4_in0_r)
AM_RANGE(0x1801, 0x1801) AM_READ_PORT("EXTRA")
AM_RANGE(0x1802, 0x1802) AM_READ(atarifb4_in2_r)
@@ -555,6 +556,7 @@ static MACHINE_CONFIG_START( atarifb, atarifb_state )
MCFG_CPU_PROGRAM_MAP(atarifb_map)
MCFG_CPU_PERIODIC_INT_DRIVER(atarifb_state, irq0_line_hold, 4*60)
+ MCFG_WATCHDOG_ADD("watchdog")
/* video hardware */
MCFG_SCREEN_ADD("screen", RASTER)