summaryrefslogtreecommitdiffstatshomepage
path: root/src/devices/machine/v3021.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/devices/machine/v3021.h')
-rw-r--r--src/devices/machine/v3021.h33
1 files changed, 12 insertions, 21 deletions
diff --git a/src/devices/machine/v3021.h b/src/devices/machine/v3021.h
index 5a968e30bfb..d7ac0eae603 100644
--- a/src/devices/machine/v3021.h
+++ b/src/devices/machine/v3021.h
@@ -10,10 +10,10 @@
***************************************************************************/
-#pragma once
+#ifndef MAME_MACHINE_V3021_H
+#define MAME_MACHINE_V3021_H
-#ifndef __v3021DEV_H__
-#define __v3021DEV_H__
+#pragma once
@@ -22,21 +22,15 @@
//**************************************************************************
#define MCFG_V3021_ADD(_tag) \
- MCFG_DEVICE_ADD(_tag, v3021, XTAL_32_768kHz)
+ MCFG_DEVICE_ADD(_tag, V3021, XTAL_32_768kHz)
//**************************************************************************
// TYPE DEFINITIONS
//**************************************************************************
-struct rtc_regs_t
-{
- uint8_t sec, min, hour, day, wday, month, year;
-};
-
-
// ======================> v3021_device
-class v3021_device : public device_t
+class v3021_device : public device_t
{
public:
// construction/destruction
@@ -48,6 +42,11 @@ public:
TIMER_CALLBACK_MEMBER(timer_callback);
protected:
+ struct rtc_regs_t
+ {
+ uint8_t sec, min, hour, day, wday, month, year;
+ };
+
// device-level overrides
virtual void device_validity_check(validity_checker &valid) const override;
virtual void device_start() override;
@@ -60,14 +59,6 @@ protected:
// device type definition
-extern const device_type v3021;
-
-
-
-//**************************************************************************
-// GLOBAL VARIABLES
-//**************************************************************************
-
-
+DECLARE_DEVICE_TYPE(V3021, v3021_device)
-#endif
+#endif // MAME_MACHINE_V3021_H