diff options
author | 2011-04-22 21:41:30 +0000 | |
---|---|---|
committer | 2011-04-22 21:41:30 +0000 | |
commit | 65c39d05961cbc522d94836609035ae6ad221300 (patch) | |
tree | d5b09770538fb05c37a362b49ba52a932ecbaccb /src/emu/machine/rp5c01.h | |
parent | 2b40cd4e3484af0db87e5ca8d4f0eea885e30ced (diff) |
Created device_rtc_interface which can be used to initialize RTC's to a certain date/time at driver startup, useful for regression testing. Implemented the interface in most of the modern RTC devices. Note: this is not yet plumbed down to the command line. [Curt Coder]
Diffstat (limited to 'src/emu/machine/rp5c01.h')
-rw-r--r-- | src/emu/machine/rp5c01.h | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/src/emu/machine/rp5c01.h b/src/emu/machine/rp5c01.h index 9e32d136d86..c5ef20c8050 100644 --- a/src/emu/machine/rp5c01.h +++ b/src/emu/machine/rp5c01.h @@ -58,8 +58,9 @@ struct rp5c01_interface // ======================> rp5c01_device_config class rp5c01_device_config : public device_config, - public device_config_nvram_interface, - public rp5c01_interface + public rp5c01_interface, + public device_config_rtc_interface, + public device_config_nvram_interface { friend class rp5c01_device; @@ -81,6 +82,7 @@ protected: // ======================> rp5c01_device class rp5c01_device : public device_t, + public device_rtc_interface, public device_nvram_interface { friend class rp5c01_device_config; @@ -98,6 +100,10 @@ protected: virtual void device_start(); 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; } + // device_nvram_interface overrides virtual void nvram_default(); virtual void nvram_read(emu_file &file); |