diff options
author | 2022-06-16 12:47:52 +0200 | |
---|---|---|
committer | 2025-04-29 23:06:41 +0200 | |
commit | 45d4cd52a8194f2ef9e0383cfb2e2a35634af6ff (patch) | |
tree | 4e8d8fcb7382a5e9e0bce5ec59939bcfbe67155a /src/devices/bus/rc2014/clock.cpp | |
parent | 5c14bcdfcb4aefb71b5b62387c4ad05dbeb3814e (diff) |
full xtal conversionxtal
Diffstat (limited to 'src/devices/bus/rc2014/clock.cpp')
-rw-r--r-- | src/devices/bus/rc2014/clock.cpp | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/src/devices/bus/rc2014/clock.cpp b/src/devices/bus/rc2014/clock.cpp index bb73143edc2..dbbb097d7c6 100644 --- a/src/devices/bus/rc2014/clock.cpp +++ b/src/devices/bus/rc2014/clock.cpp @@ -21,7 +21,7 @@ class single_clock_device : public device_t, public device_rc2014_card_interface { public: // construction/destruction - single_clock_device(const machine_config &mconfig, const char *tag, device_t *owner, u32 clock); + single_clock_device(const machine_config &mconfig, const char *tag, device_t *owner, const XTAL &clock); protected: // device-level overrides @@ -31,7 +31,7 @@ protected: DECLARE_WRITE_LINE_MEMBER( clk_w ) { m_bus->clk_w(state); } }; -single_clock_device::single_clock_device(const machine_config &mconfig, const char *tag, device_t *owner, u32 clock) +single_clock_device::single_clock_device(const machine_config &mconfig, const char *tag, device_t *owner, const XTAL &clock) : device_t(mconfig, RC2014_SINGLE_CLOCK, tag, owner, clock) , device_rc2014_card_interface(mconfig, *this) { @@ -61,7 +61,7 @@ class dual_clock_base : public device_t { protected: // construction/destruction - dual_clock_base(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, u32 clock); + dual_clock_base(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, const XTAL &clock); // device-level overrides virtual void device_start() override; @@ -79,7 +79,7 @@ protected: required_ioport m_clk_sel_2; }; -dual_clock_base::dual_clock_base(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, u32 clock) +dual_clock_base::dual_clock_base(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, const XTAL &clock) : device_t(mconfig, type, tag, owner, clock) , m_clock_1(*this, "clock1") , m_clock_2(*this, "clock2") @@ -151,10 +151,10 @@ ioport_constructor dual_clock_base::device_input_ports() const void dual_clock_base::device_add_mconfig(machine_config &config) { - CLOCK(config, m_clock_1, 0); + CLOCK(config, m_clock_1); m_clock_1->signal_handler().set(FUNC(dual_clock_base::clk_w)); - CLOCK(config, m_clock_2, 0); + CLOCK(config, m_clock_2); m_clock_2->signal_handler().set(FUNC(dual_clock_base::clk2_w)); } @@ -166,7 +166,7 @@ class dual_clock_device : public dual_clock_base, public device_rc2014_ext_card_ { public: // construction/destruction - dual_clock_device(const machine_config &mconfig, const char *tag, device_t *owner, u32 clock); + dual_clock_device(const machine_config &mconfig, const char *tag, device_t *owner, const XTAL &clock); protected: // device-level overrides @@ -177,7 +177,7 @@ protected: DECLARE_WRITE_LINE_MEMBER( clk2_w ) override { m_bus->clk2_w(state); } }; -dual_clock_device::dual_clock_device(const machine_config &mconfig, const char *tag, device_t *owner, u32 clock) +dual_clock_device::dual_clock_device(const machine_config &mconfig, const char *tag, device_t *owner, const XTAL &clock) : dual_clock_base(mconfig, RC2014_DUAL_CLOCK, tag, owner, clock) , device_rc2014_ext_card_interface(mconfig, *this) { @@ -197,7 +197,7 @@ class dual_clock_device_40pin : public dual_clock_base, public device_rc2014_car { public: // construction/destruction - dual_clock_device_40pin(const machine_config &mconfig, const char *tag, device_t *owner, u32 clock); + dual_clock_device_40pin(const machine_config &mconfig, const char *tag, device_t *owner, const XTAL &clock); protected: // device-level overrides @@ -208,7 +208,7 @@ protected: DECLARE_WRITE_LINE_MEMBER( clk2_w ) override { } }; -dual_clock_device_40pin::dual_clock_device_40pin(const machine_config &mconfig, const char *tag, device_t *owner, u32 clock) +dual_clock_device_40pin::dual_clock_device_40pin(const machine_config &mconfig, const char *tag, device_t *owner, const XTAL &clock) : dual_clock_base(mconfig, RC2014_DUAL_CLOCK_40P, tag, owner, clock) , device_rc2014_card_interface(mconfig, *this) { |