summaryrefslogtreecommitdiffstatshomepage
path: root/src/emu/machine/v3021.h
diff options
context:
space:
mode:
author Miodrag Milanovic <mmicko@gmail.com>2015-09-13 08:41:44 +0200
committer Miodrag Milanovic <mmicko@gmail.com>2015-09-13 08:41:44 +0200
commitf88cefad27a1737c76e09d99c9fb43e173506081 (patch)
tree2d8167d03579c46e226471747eb4407bd00ed6fa /src/emu/machine/v3021.h
parente92ac9e0fa8e99869894bea00589bbb526be30aa (diff)
Move all devices into separate part of src tree (nw)
Diffstat (limited to 'src/emu/machine/v3021.h')
-rw-r--r--src/emu/machine/v3021.h78
1 files changed, 0 insertions, 78 deletions
diff --git a/src/emu/machine/v3021.h b/src/emu/machine/v3021.h
deleted file mode 100644
index 3dd1c709d1e..00000000000
--- a/src/emu/machine/v3021.h
+++ /dev/null
@@ -1,78 +0,0 @@
-// license:BSD-3-Clause
-// copyright-holders:Angelo Salese
-/***************************************************************************
-
- v3021.h
-
- EM Microelectronic-Marin SA Ultra Low Power 32kHz CMOS RTC (DIP8)
-
- Serial Real Time Clock
-
-***************************************************************************/
-
-#pragma once
-
-#ifndef __v3021DEV_H__
-#define __v3021DEV_H__
-
-
-
-//**************************************************************************
-// INTERFACE CONFIGURATION MACROS
-//**************************************************************************
-
-#define MCFG_V3021_ADD(_tag) \
- MCFG_DEVICE_ADD(_tag, v3021, XTAL_32_768kHz)
-
-//**************************************************************************
-// TYPE DEFINITIONS
-//**************************************************************************
-
-struct rtc_regs_t
-{
- UINT8 sec, min, hour, day, wday, month, year;
-};
-
-
-// ======================> v3021_device
-
-class v3021_device : public device_t
-{
-public:
- // construction/destruction
- v3021_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock);
-
- // I/O operations
- DECLARE_WRITE8_MEMBER( write );
- DECLARE_READ8_MEMBER( read );
- void timer_callback();
-
-protected:
- // device-level overrides
- virtual void device_validity_check(validity_checker &valid) const;
- virtual void device_start();
- virtual void device_reset();
-
- inline UINT8 rtc_read(UINT8 offset);
- inline void rtc_write(UINT8 offset,UINT8 data);
-
- static TIMER_CALLBACK( rtc_inc_callback );
-
- UINT8 m_cal_mask,m_cal_com,m_cal_cnt,m_cal_val;
-
- rtc_regs_t m_rtc;
-};
-
-
-// device type definition
-extern const device_type v3021;
-
-
-
-//**************************************************************************
-// GLOBAL VARIABLES
-//**************************************************************************
-
-
-
-#endif