summaryrefslogtreecommitdiffstatshomepage
path: root/src/mame/drivers/ampro.cpp
diff options
context:
space:
mode:
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
commit6d5f14ac55eed3f3892a698dedb0de0c46169133 (patch)
treebe006c29908c2760c3d86d7f9accf35573377964 /src/mame/drivers/ampro.cpp
parentc20e0b0fe244a103fceea9b309d6ef72c8fdb185 (diff)
More CTC set_clk conversions (nw)
Diffstat (limited to 'src/mame/drivers/ampro.cpp')
-rw-r--r--src/mame/drivers/ampro.cpp7
1 files changed, 2 insertions, 5 deletions
diff --git a/src/mame/drivers/ampro.cpp b/src/mame/drivers/ampro.cpp
index dade88e641d..8aeb0abde76 100644
--- a/src/mame/drivers/ampro.cpp
+++ b/src/mame/drivers/ampro.cpp
@@ -28,7 +28,6 @@ ToDo:
#include "machine/z80ctc.h"
#include "machine/z80dart.h"
#include "machine/wd_fdc.h"
-#include "machine/clock.h"
#include "machine/timer.h"
#include "softlist.h"
@@ -162,13 +161,11 @@ void ampro_state::ampro(machine_config &config)
m_maincpu->set_addrmap(AS_IO, &ampro_state::ampro_io);
m_maincpu->set_daisy_config(daisy_chain_intf);
- clock_device &ctc_clock(CLOCK(config, "ctc_clock", 16_MHz_XTAL / 8)); // 2MHz
- ctc_clock.signal_handler().set(m_ctc, FUNC(z80ctc_device::trg0));
- ctc_clock.signal_handler().append(m_ctc, FUNC(z80ctc_device::trg1));
-
/* Devices */
Z80CTC(config, m_ctc, 16_MHz_XTAL / 4);
m_ctc->intr_callback().set_inputline(m_maincpu, INPUT_LINE_IRQ0);
+ m_ctc->set_clk<0>(16_MHz_XTAL / 8); // 2MHz
+ m_ctc->set_clk<1>(16_MHz_XTAL / 8); // 2MHz
m_ctc->zc_callback<0>().set(m_dart, FUNC(z80dart_device::txca_w)); // Z80DART Ch A, SIO Ch A
m_ctc->zc_callback<0>().append(m_dart, FUNC(z80dart_device::rxca_w));
m_ctc->zc_callback<1>().set(m_dart, FUNC(z80dart_device::rxtxcb_w)); // SIO Ch B