summaryrefslogtreecommitdiffstatshomepage
path: root/src/devices/machine/msm5832.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/devices/machine/msm5832.h')
-rw-r--r--src/devices/machine/msm5832.h18
1 files changed, 8 insertions, 10 deletions
diff --git a/src/devices/machine/msm5832.h b/src/devices/machine/msm5832.h
index 3b7627e00db..a7878d11585 100644
--- a/src/devices/machine/msm5832.h
+++ b/src/devices/machine/msm5832.h
@@ -18,10 +18,10 @@
**********************************************************************/
-#pragma once
+#ifndef MAME_MACHINE_MSM5832_H
+#define MAME_MACHINE_MSM5832_H
-#ifndef __MSM5832__
-#define __MSM5832__
+#pragma once
#include "dirtc.h"
@@ -31,8 +31,8 @@
// INTERFACE CONFIGURATION MACROS
//**************************************************************************
-#define MCFG_MSM5832_ADD(_tag, _clock) \
- MCFG_DEVICE_ADD(_tag, MSM5832, _clock)
+#define MCFG_MSM5832_ADD(tag, clock) \
+ MCFG_DEVICE_ADD((tag), MSM5832, (clock))
@@ -71,7 +71,7 @@ protected:
virtual void rtc_clock_updated(int year, int month, int day, int day_of_week, int hour, int minute, int second) override;
private:
- static const device_timer_id TIMER_CLOCK = 0;
+ static constexpr device_timer_id TIMER_CLOCK = 0;
inline int read_counter(int counter);
inline void write_counter(int counter, int value);
@@ -93,8 +93,6 @@ private:
// device type definition
-extern const device_type MSM5832;
-
-
+DECLARE_DEVICE_TYPE(MSM5832, msm5832_device)
-#endif
+#endif // MAME_MACHINE_MSM5832_H