diff options
author | AJR <ajrhacker@users.noreply.github.com> | 2018-11-13 23:16:46 -0500 |
---|---|---|
committer | AJR <ajrhacker@users.noreply.github.com> | 2018-11-13 23:16:46 -0500 |
commit | 6d5f14ac55eed3f3892a698dedb0de0c46169133 (patch) | |
tree | be006c29908c2760c3d86d7f9accf35573377964 /src/mame/drivers/einstein.cpp | |
parent | c20e0b0fe244a103fceea9b309d6ef72c8fdb185 (diff) |
More CTC set_clk conversions (nw)
Diffstat (limited to 'src/mame/drivers/einstein.cpp')
-rw-r--r-- | src/mame/drivers/einstein.cpp | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/src/mame/drivers/einstein.cpp b/src/mame/drivers/einstein.cpp index b5b06e263b2..8ab0ba8b198 100644 --- a/src/mame/drivers/einstein.cpp +++ b/src/mame/drivers/einstein.cpp @@ -19,7 +19,6 @@ #include "bus/einstein/userport/userport.h" #include "bus/rs232/rs232.h" #include "machine/adc0844.h" -#include "machine/clock.h" #include "machine/i8251.h" #include "machine/ram.h" #include "machine/rescap.h" @@ -597,15 +596,13 @@ MACHINE_CONFIG_START(einstein_state::einstein) z80ctc_device& ctc(Z80CTC(config, IC_I058, XTAL_X002 / 2)); ctc.intr_callback().set(FUNC(einstein_state::int_w<1>)); + ctc.set_clk<0>(XTAL_X002 / 4); + ctc.set_clk<1>(XTAL_X002 / 4); + ctc.set_clk<2>(XTAL_X002 / 4); ctc.zc_callback<0>().set(IC_I060, FUNC(i8251_device::write_txc)); ctc.zc_callback<1>().set(IC_I060, FUNC(i8251_device::write_rxc)); ctc.zc_callback<2>().set(IC_I058, FUNC(z80ctc_device::trg3)); - clock_device &ctc_trigger(CLOCK(config, "ctc_trigger", XTAL_X002 / 4)); - ctc_trigger.signal_handler().set(IC_I058, FUNC(z80ctc_device::trg0)); - ctc_trigger.signal_handler().append(IC_I058, FUNC(z80ctc_device::trg1)); - ctc_trigger.signal_handler().append(IC_I058, FUNC(z80ctc_device::trg2)); - /* Einstein daisy chain support for non-Z80 devices */ Z80DAISY_GENERIC(config, m_keyboard_daisy, 0xf7); m_keyboard_daisy->int_handler().set(FUNC(einstein_state::int_w<2>)); |