summaryrefslogtreecommitdiffstatshomepage
path: root/src/mame/drivers/ccs300.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mame/drivers/ccs300.cpp')
-rw-r--r--src/mame/drivers/ccs300.cpp13
1 files changed, 2 insertions, 11 deletions
diff --git a/src/mame/drivers/ccs300.cpp b/src/mame/drivers/ccs300.cpp
index 9e78f79ee9f..8aea648fb6f 100644
--- a/src/mame/drivers/ccs300.cpp
+++ b/src/mame/drivers/ccs300.cpp
@@ -34,17 +34,14 @@ public:
ccs300_state(const machine_config &mconfig, device_type type, const char *tag)
: driver_device(mconfig, type, tag)
, m_maincpu(*this, "maincpu")
- , m_sio(*this, "sio")
{ }
- DECLARE_WRITE_LINE_MEMBER(clock_tick);
DECLARE_DRIVER_INIT(ccs300);
DECLARE_MACHINE_RESET(ccs300);
DECLARE_WRITE8_MEMBER(port40_w);
private:
required_device<cpu_device> m_maincpu;
- required_device<z80sio_device> m_sio;
};
static ADDRESS_MAP_START(ccs300_mem, AS_PROGRAM, 8, ccs300_state)
@@ -70,13 +67,6 @@ ADDRESS_MAP_END
static INPUT_PORTS_START( ccs300 )
INPUT_PORTS_END
-// source of baud frequency is unknown, so we invent a clock
-WRITE_LINE_MEMBER( ccs300_state::clock_tick )
-{
- m_sio->txca_w(state);
- m_sio->rxca_w(state);
-}
-
static const z80_daisy_config daisy_chain[] =
{
{ "ctc" },
@@ -131,7 +121,8 @@ static MACHINE_CONFIG_START( ccs300 )
/* video hardware */
MCFG_DEVICE_ADD("uart_clock", CLOCK, 153600)
- MCFG_CLOCK_SIGNAL_HANDLER(WRITELINE(ccs300_state, clock_tick))
+ MCFG_CLOCK_SIGNAL_HANDLER(DEVWRITELINE("sio", z80sio_device, txca_w))
+ MCFG_DEVCB_CHAIN_OUTPUT(DEVWRITELINE("sio", z80sio_device, rxca_w))
/* Devices */
MCFG_Z80SIO_ADD("sio", XTAL_4MHz, 0, 0, 0, 0)