summaryrefslogtreecommitdiffstatshomepage
path: root/src/mess/machine/hd64610.h
diff options
context:
space:
mode:
author Curt Coder <curtcoder@mail.com>2014-03-18 11:46:44 +0000
committer Curt Coder <curtcoder@mail.com>2014-03-18 11:46:44 +0000
commitf65e037141714318cfd32ecf988a7993f6cd9b3f (patch)
tree4c9a58e4b763733d3e2e80a409da026626978cc7 /src/mess/machine/hd64610.h
parent15b2c80c62e9eddad3a6322fdef9c22039ce1eaa (diff)
(MESS) Moved common machine and video chips to emu. (nw)
Diffstat (limited to 'src/mess/machine/hd64610.h')
-rw-r--r--src/mess/machine/hd64610.h105
1 files changed, 0 insertions, 105 deletions
diff --git a/src/mess/machine/hd64610.h b/src/mess/machine/hd64610.h
deleted file mode 100644
index 4d25cef9a7a..00000000000
--- a/src/mess/machine/hd64610.h
+++ /dev/null
@@ -1,105 +0,0 @@
-// license:BSD-3-Clause
-// copyright-holders:Sandro Ronco
-/**********************************************************************
-
- Hitachi HD64610 Real Time Clock
-
-**********************************************************************
- _____ _____
- GND 1 |* \_/ | 24 Vcc
- H-Start/Stop 2 | | 23 OSC2
- _IRQ 3 | | 22 OSC1
- 1Hz 4 | HD64610 | 21 GND
- A3 5 | | 20 _WE
- A2 6 | | 19 _OE
- A1 7 | | 18 _CS
- A0 8 | | 17 I/O8
- I/O1 9 | | 16 I/O7
- I/O2 10 | | 15 I/O6
- I/O3 11 | | 14 I/O5
- GND 12 |_____________| 13 I/O4
-
-**********************************************************************/
-
-#pragma once
-
-#ifndef __HD64610__
-#define __HD64610__
-
-#include "emu.h"
-
-
-
-//**************************************************************************
-// INTERFACE CONFIGURATION MACROS
-//**************************************************************************
-
-#define MCFG_HD64610_OUT_IRQ_CB(_devcb) \
- devcb = &hd64610_device::set_out_irq_callback(*device, DEVCB2_##_devcb);
-
-#define MCFG_HD64610_OUT_1HZ_CB(_devcb) \
- devcb = &hd64610_device::set_out_1hz_callback(*device, DEVCB2_##_devcb);
-
-
-//**************************************************************************
-// TYPE DEFINITIONS
-//**************************************************************************
-
-// ======================> hd64610_device
-
-class hd64610_device : public device_t,
- public device_rtc_interface,
- public device_nvram_interface
-{
-public:
- // construction/destruction
- hd64610_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock);
-
- template<class _Object> static devcb2_base &set_out_irq_callback(device_t &device, _Object object) { return downcast<hd64610_device &>(device).m_out_irq_cb.set_callback(object); }
- template<class _Object> static devcb2_base &set_out_1hz_callback(device_t &device, _Object object) { return downcast<hd64610_device &>(device).m_out_1hz_cb.set_callback(object); }
-
- DECLARE_READ8_MEMBER( read );
- DECLARE_WRITE8_MEMBER( write );
-
- // hardware start/stop line
- DECLARE_WRITE_LINE_MEMBER( h_w );
-
-protected:
- // device-level overrides
- virtual void device_start();
- virtual void device_reset();
- virtual void device_timer(emu_timer &timer, device_timer_id id, int param, void *ptr);
-
- // device_rtc_interface overrides
- virtual void rtc_clock_updated(int year, int month, int day, int day_of_week, int hour, int minute, int second);
-
- // device_nvram_interface overrides
- virtual void nvram_default();
- virtual void nvram_read(emu_file &file);
- virtual void nvram_write(emu_file &file);
-
-private:
- inline void set_irq_line();
- inline UINT8 read_counter(int counter);
- inline void write_counter(int counter, UINT8 value);
- inline void check_alarm();
-
- static const device_timer_id TIMER_UPDATE_COUNTER = 0;
-
- devcb2_write_line m_out_irq_cb;
- devcb2_write_line m_out_1hz_cb;
-
- UINT8 m_regs[0x10]; // Internal registers
- int m_hline_state; // H-Start/Stop line
- int m_irq_out; // alarm output
-
- // timers
- emu_timer *m_counter_timer;
-};
-
-
-// device type definition
-extern const device_type HD64610;
-
-
-#endif