summaryrefslogtreecommitdiffstatshomepage
path: root/src/devices/bus/coco/coco_t4426.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/devices/bus/coco/coco_t4426.cpp')
-rw-r--r--src/devices/bus/coco/coco_t4426.cpp31
1 files changed, 16 insertions, 15 deletions
diff --git a/src/devices/bus/coco/coco_t4426.cpp b/src/devices/bus/coco/coco_t4426.cpp
index fa34a31c31c..eaa6f651ef2 100644
--- a/src/devices/bus/coco/coco_t4426.cpp
+++ b/src/devices/bus/coco/coco_t4426.cpp
@@ -148,7 +148,8 @@ namespace
IMPLEMENTATION
***************************************************************************/
-MACHINE_CONFIG_START(coco_t4426_device::device_add_mconfig)
+void coco_t4426_device::device_add_mconfig(machine_config &config)
+{
PIA6821(config, m_pia, 0);
m_pia->writepa_handler().set(FUNC(coco_t4426_device::pia_A_w));
@@ -156,22 +157,22 @@ MACHINE_CONFIG_START(coco_t4426_device::device_add_mconfig)
m_uart->txd_handler().set(SERIAL_TAG, FUNC(rs232_port_device::write_txd));
m_uart->rts_handler().set(SERIAL_TAG, FUNC(rs232_port_device::write_rts));
- MCFG_DEVICE_ADD(SERIAL_TAG, RS232_PORT, default_rs232_devices, nullptr)
- MCFG_RS232_RXD_HANDLER(WRITELINE(UART_TAG, acia6850_device, write_rxd))
- MCFG_RS232_CTS_HANDLER(WRITELINE(UART_TAG, acia6850_device, write_cts))
+ rs232_port_device &rs232(RS232_PORT(config, SERIAL_TAG, default_rs232_devices, nullptr));
+ rs232.rxd_handler().set(UART_TAG, FUNC(acia6850_device::write_rxd));
+ rs232.cts_handler().set(UART_TAG, FUNC(acia6850_device::write_cts));
/* Bit Rate Generator */
- MCFG_DEVICE_ADD(BRG_TAG, MC14411, 1.8432_MHz_XTAL)
- MCFG_MC14411_F1_CB(WRITELINE(*this, coco_t4426_device, write_f1_clock))
- MCFG_MC14411_F3_CB(WRITELINE(*this, coco_t4426_device, write_f3_clock))
- MCFG_MC14411_F5_CB(WRITELINE(*this, coco_t4426_device, write_f5_clock))
- MCFG_MC14411_F7_CB(WRITELINE(*this, coco_t4426_device, write_f7_clock))
- MCFG_MC14411_F8_CB(WRITELINE(*this, coco_t4426_device, write_f8_clock))
- MCFG_MC14411_F9_CB(WRITELINE(*this, coco_t4426_device, write_f9_clock))
- MCFG_MC14411_F11_CB(WRITELINE(*this, coco_t4426_device, write_f11_clock))
- MCFG_MC14411_F13_CB(WRITELINE(*this, coco_t4426_device, write_f13_clock))
- MCFG_MC14411_F15_CB(WRITELINE(*this, coco_t4426_device, write_f15_clock))
-MACHINE_CONFIG_END
+ MC14411(config, m_brg, 1.8432_MHz_XTAL);
+ m_brg->out_f<1>().set(FUNC(coco_t4426_device::write_f1_clock));
+ m_brg->out_f<3>().set(FUNC(coco_t4426_device::write_f3_clock));
+ m_brg->out_f<5>().set(FUNC(coco_t4426_device::write_f5_clock));
+ m_brg->out_f<7>().set(FUNC(coco_t4426_device::write_f7_clock));
+ m_brg->out_f<8>().set(FUNC(coco_t4426_device::write_f8_clock));
+ m_brg->out_f<9>().set(FUNC(coco_t4426_device::write_f9_clock));
+ m_brg->out_f<11>().set(FUNC(coco_t4426_device::write_f11_clock));
+ m_brg->out_f<13>().set(FUNC(coco_t4426_device::write_f13_clock));
+ m_brg->out_f<15>().set(FUNC(coco_t4426_device::write_f15_clock));
+}
ROM_START( coco_t4426 )
// Part of this region is filled by set_bank