diff options
Diffstat (limited to 'src/devices/bus/vtech/ioexp/printer.cpp')
-rw-r--r-- | src/devices/bus/vtech/ioexp/printer.cpp | 13 |
1 files changed, 5 insertions, 8 deletions
diff --git a/src/devices/bus/vtech/ioexp/printer.cpp b/src/devices/bus/vtech/ioexp/printer.cpp index b927f41d3c4..66967668703 100644 --- a/src/devices/bus/vtech/ioexp/printer.cpp +++ b/src/devices/bus/vtech/ioexp/printer.cpp @@ -23,14 +23,11 @@ DEFINE_DEVICE_TYPE(VTECH_PRINTER_INTERFACE, vtech_printer_interface_device, "vte // device_add_mconfig - add device configuration //------------------------------------------------- -void vtech_printer_interface_device::device_add_mconfig(machine_config &config) -{ - CENTRONICS(config, m_centronics, centronics_devices, "printer"); - m_centronics->busy_handler().set(FUNC(vtech_printer_interface_device::busy_w)); - - OUTPUT_LATCH(config, m_latch); - m_centronics->set_output_latch(*m_latch); -} +MACHINE_CONFIG_START(vtech_printer_interface_device::device_add_mconfig) + MCFG_DEVICE_ADD(m_centronics, CENTRONICS, centronics_devices, "printer") + MCFG_CENTRONICS_BUSY_HANDLER(WRITELINE(*this, vtech_printer_interface_device, busy_w)) + MCFG_CENTRONICS_OUTPUT_LATCH_ADD("latch", "centronics") +MACHINE_CONFIG_END //************************************************************************** |