diff options
author | 2019-06-05 23:51:47 -0400 | |
---|---|---|
committer | 2019-06-05 23:53:44 -0400 | |
commit | 0990b9df663b0cee40bb7b142bbdf32383b51a23 (patch) | |
tree | 95c29743d59eef20c0d555a7e6ff7f2732eb90b9 /src/devices/machine/ds1386.h | |
parent | 334af8082a2d24ff985382937707b8eee21c5835 (diff) |
ds1386: Make initialization of RTC registers from system time actually work; adopt more useful default value for command register
hp16500b: Add DS1286 (nw)
Diffstat (limited to 'src/devices/machine/ds1386.h')
-rw-r--r-- | src/devices/machine/ds1386.h | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/src/devices/machine/ds1386.h b/src/devices/machine/ds1386.h index 032e7d73eb0..17e01b9f458 100644 --- a/src/devices/machine/ds1386.h +++ b/src/devices/machine/ds1386.h @@ -74,8 +74,11 @@ #pragma once +#include "dirtc.h" + class ds1386_device : public device_t, - public device_nvram_interface + public device_nvram_interface, + public device_rtc_interface { public: auto inta() { return m_inta_cb.bind(); } @@ -122,7 +125,6 @@ protected: // device-level overrides virtual void device_start() override; - virtual void device_reset() override; virtual void device_timer(emu_timer &timer, device_timer_id id, int param, void *ptr) override; // device_nvram_interface overrides @@ -130,6 +132,11 @@ protected: virtual void nvram_read(emu_file &file) override; virtual void nvram_write(emu_file &file) override; + // device_rtc_interface overrides + virtual bool rtc_feature_y2k() const override { return false; } + virtual bool rtc_feature_leap_year() const override { return true; } + virtual void rtc_clock_updated(int year, int month, int day, int day_of_week, int hour, int minute, int second) override; + static constexpr device_timer_id CLOCK_TIMER = 0; static constexpr device_timer_id SQUAREWAVE_TIMER = 1; static constexpr device_timer_id WATCHDOG_TIMER = 2; |