diff options
author | 2012-04-27 21:23:39 +0000 | |
---|---|---|
committer | 2012-04-27 21:23:39 +0000 | |
commit | 10d8064c72de2752f8b2d5f0390fffa850063adc (patch) | |
tree | 4f4e1a050d3a1993b8e13354a1fe219f984c5fb2 /src/emu/machine/msm5832.h | |
parent | 4c2884bfeef5fa784439bc1cf03af11fe7eec3c3 (diff) |
Added the clock counter chain and other common functions into device_rtc_interface, removing duplicated code in RTC implementations. Rewrote the Dallas DS1302 to support additional features needed by IDE64 in MESS. [Curt Coder]
Diffstat (limited to 'src/emu/machine/msm5832.h')
-rw-r--r-- | src/emu/machine/msm5832.h | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/src/emu/machine/msm5832.h b/src/emu/machine/msm5832.h index a93c2589ffc..c497abd11de 100644 --- a/src/emu/machine/msm5832.h +++ b/src/emu/machine/msm5832.h @@ -66,19 +66,17 @@ public: protected: // device-level overrides virtual void device_start(); - virtual void device_timer(emu_timer &timer, device_timer_id id, int param, void *ptr); + 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_set_time(int year, int month, int day, int day_of_week, int hour, int minute, int second); - virtual bool rtc_is_year_2000_compliant() { return false; } + virtual void rtc_clock_updated(int year, int month, int day, int day_of_week, int hour, int minute, int second); private: static const device_timer_id TIMER_CLOCK = 0; inline int read_counter(int counter); inline void write_counter(int counter, int value); - inline void advance_seconds(); - inline void advance_minutes(); UINT8 m_reg[13]; // registers |