diff options
| author | 2017-06-14 16:59:53 -0400 | |
|---|---|---|
| committer | 2017-06-14 16:59:53 -0400 | |
| commit | b99ebe6d620bfdb32e28fa6c8d12f0658d199993 (patch) | |
| tree | 8a4e3cf16106c073261acadba452b554043db647 /src/devices/machine/rp5c01.cpp | |
| parent | 650c0c04db11352aa69d565af12109d1a3787a19 (diff) | |
yesnoj: Add TC8521 RTC (though the game remains stuck in the 20th century)
tc8521: Add device type as alias for RP5C01 (nw)
Diffstat (limited to 'src/devices/machine/rp5c01.cpp')
| -rw-r--r-- | src/devices/machine/rp5c01.cpp | 19 |
1 files changed, 17 insertions, 2 deletions
diff --git a/src/devices/machine/rp5c01.cpp b/src/devices/machine/rp5c01.cpp index 99eb81ca4df..6bbc68be94e 100644 --- a/src/devices/machine/rp5c01.cpp +++ b/src/devices/machine/rp5c01.cpp @@ -20,8 +20,9 @@ #include "rp5c01.h" -// device type definition +// device type definitions DEFINE_DEVICE_TYPE(RP5C01, rp5c01_device, "rp5c01", "Ricoh RP5C01 RTC") +DEFINE_DEVICE_TYPE(TC8521, tc8521_device, "tc8521", "Toshiba TC8521 RTC") //************************************************************************** @@ -169,7 +170,12 @@ inline void rp5c01_device::check_alarm() //------------------------------------------------- rp5c01_device::rp5c01_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock) - : device_t(mconfig, RP5C01, tag, owner, clock), + : rp5c01_device(mconfig, RP5C01, tag, owner, clock) +{ +} + +rp5c01_device::rp5c01_device(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, uint32_t clock) + : device_t(mconfig, type, tag, owner, clock), device_rtc_interface(mconfig, *this), device_nvram_interface(mconfig, *this), m_out_alarm_cb(*this), @@ -416,3 +422,12 @@ WRITE8_MEMBER( rp5c01_device::write ) break; } } + +//------------------------------------------------- +// tc8521_device - constructor +//------------------------------------------------- + +tc8521_device::tc8521_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock) + : rp5c01_device(mconfig, TC8521, tag, owner, clock) +{ +} |
