summaryrefslogtreecommitdiffstatshomepage
path: root/src/devices/machine/mm58274c.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/devices/machine/mm58274c.h')
-rw-r--r--src/devices/machine/mm58274c.h17
1 files changed, 14 insertions, 3 deletions
diff --git a/src/devices/machine/mm58274c.h b/src/devices/machine/mm58274c.h
index c6fcbee3c46..cee2df48db9 100644
--- a/src/devices/machine/mm58274c.h
+++ b/src/devices/machine/mm58274c.h
@@ -16,8 +16,8 @@ public:
void set_day1(int day) { m_day1 = day; }
void set_mode_and_day(int mode, int day) { m_mode24 = mode; m_day1 = day; }
- uint8_t read(offs_t offset);
- void write(offs_t offset, uint8_t data);
+ DECLARE_READ8_MEMBER(read);
+ DECLARE_WRITE8_MEMBER(write);
TIMER_CALLBACK_MEMBER(rtc_increment_cb);
TIMER_CALLBACK_MEMBER(rtc_interrupt_cb);
@@ -30,7 +30,7 @@ protected:
private:
// internal state
- // Initialization of the clock chip:
+ // Initializion the clock chip:
// m_day1 must be set to a value from 0 (sunday), 1 (monday)...
// to 6 (saturday) and is needed to correctly retrieve the
// day-of-week from the host system clock.
@@ -66,4 +66,15 @@ private:
DECLARE_DEVICE_TYPE(MM58274C, mm58274c_device)
+
+/***************************************************************************
+ DEVICE CONFIGURATION MACROS
+***************************************************************************/
+
+#define MCFG_MM58274C_MODE24(_mode) \
+ downcast<mm58274c_device &>(*device).set_mode24(_mode);
+
+#define MCFG_MM58274C_DAY1(_day) \
+ downcast<mm58274c_device &>(*device).set_day1(_day);
+
#endif // MAME_MACHINE_MM58274C_H