summaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
-rw-r--r--src/devices/bus/ieee488/remote488.cpp7
-rw-r--r--src/devices/bus/rs232/null_modem.cpp7
-rw-r--r--src/devices/bus/ti8x/bitsocket.cpp7
-rw-r--r--src/devices/imagedev/bitbngr.h4
-rw-r--r--src/mame/drivers/hp80.cpp4
-rw-r--r--src/mame/machine/hp9845_printer.cpp9
6 files changed, 19 insertions, 19 deletions
diff --git a/src/devices/bus/ieee488/remote488.cpp b/src/devices/bus/ieee488/remote488.cpp
index a9baafc9320..b5eb0041632 100644
--- a/src/devices/bus/ieee488/remote488.cpp
+++ b/src/devices/bus/ieee488/remote488.cpp
@@ -249,9 +249,10 @@ remote488_device::remote488_device(const machine_config &mconfig, const char *ta
{
}
-MACHINE_CONFIG_START(remote488_device::device_add_mconfig)
- MCFG_DEVICE_ADD("stream", BITBANGER, 0)
-MACHINE_CONFIG_END
+void remote488_device::device_add_mconfig(machine_config &config)
+{
+ BITBANGER(config, m_stream, 0);
+}
void remote488_device::ieee488_eoi(int state)
{
diff --git a/src/devices/bus/rs232/null_modem.cpp b/src/devices/bus/rs232/null_modem.cpp
index def7bd2a315..08366b01df9 100644
--- a/src/devices/bus/rs232/null_modem.cpp
+++ b/src/devices/bus/rs232/null_modem.cpp
@@ -22,9 +22,10 @@ null_modem_device::null_modem_device(const machine_config &mconfig, const char *
{
}
-MACHINE_CONFIG_START(null_modem_device::device_add_mconfig)
- MCFG_DEVICE_ADD("stream", BITBANGER, 0)
-MACHINE_CONFIG_END
+void null_modem_device::device_add_mconfig(machine_config &config)
+{
+ BITBANGER(config, m_stream, 0);
+}
static INPUT_PORTS_START(null_modem)
MCFG_RS232_BAUD("RS232_TXBAUD", RS232_BAUD_9600, "TX Baud", null_modem_device, update_serial)
diff --git a/src/devices/bus/ti8x/bitsocket.cpp b/src/devices/bus/ti8x/bitsocket.cpp
index e9394788d94..bfe7849aa40 100644
--- a/src/devices/bus/ti8x/bitsocket.cpp
+++ b/src/devices/bus/ti8x/bitsocket.cpp
@@ -25,9 +25,10 @@ bit_socket_device::bit_socket_device(
}
-MACHINE_CONFIG_START(bit_socket_device::device_add_mconfig)
- MCFG_DEVICE_ADD("stream", BITBANGER, 0)
-MACHINE_CONFIG_END
+void bit_socket_device::device_add_mconfig(machine_config &config)
+{
+ BITBANGER(config, m_stream, 0);
+}
void bit_socket_device::device_start()
diff --git a/src/devices/imagedev/bitbngr.h b/src/devices/imagedev/bitbngr.h
index 5bd7392f1d9..2a2a72dd9a6 100644
--- a/src/devices/imagedev/bitbngr.h
+++ b/src/devices/imagedev/bitbngr.h
@@ -48,10 +48,6 @@ private:
bool m_is_readonly;
};
-#define MCFG_BITBANGER_INTERFACE(_interface) \
- downcast<bitbanger_device &>(*device).set_interface(_interface);
-#define MCFG_BITBANGER_READONLY(_readonly) \
- downcast<bitbanger_device &>(*device).set_readonly(_readonly);
// device type definition
DECLARE_DEVICE_TYPE(BITBANGER, bitbanger_device)
diff --git a/src/mame/drivers/hp80.cpp b/src/mame/drivers/hp80.cpp
index 7f7dfb6ab54..1c848d44f70 100644
--- a/src/mame/drivers/hp80.cpp
+++ b/src/mame/drivers/hp80.cpp
@@ -1395,8 +1395,8 @@ MACHINE_CONFIG_START(hp85_state::hp85)
MCFG_HP80_IO_HALT_CB(WRITE8(*this, hp85_state , halt_w))
// Printer output
- MCFG_DEVICE_ADD("prt_graphic", BITBANGER, 0)
- MCFG_DEVICE_ADD("prt_alpha", BITBANGER, 0)
+ BITBANGER(config, m_prt_graph_out, 0);
+ BITBANGER(config, m_prt_alpha_out, 0);
MCFG_SOFTWARE_LIST_ADD("optrom_list" , "hp85_rom")
MACHINE_CONFIG_END
diff --git a/src/mame/machine/hp9845_printer.cpp b/src/mame/machine/hp9845_printer.cpp
index 0342f39e5dd..3c053cdb07b 100644
--- a/src/mame/machine/hp9845_printer.cpp
+++ b/src/mame/machine/hp9845_printer.cpp
@@ -137,10 +137,11 @@ const tiny_rom_entry *hp9845_printer_device::device_rom_region() const
return ROM_NAME(hp9845_printer);
}
-MACHINE_CONFIG_START(hp9845_printer_device::device_add_mconfig)
- MCFG_DEVICE_ADD("prt_alpha", BITBANGER, 0)
- MCFG_DEVICE_ADD("prt_graphic", BITBANGER, 0)
-MACHINE_CONFIG_END
+void hp9845_printer_device::device_add_mconfig(machine_config &config)
+{
+ BITBANGER(config, m_prt_alpha_out, 0);
+ BITBANGER(config, m_prt_graph_out, 0);
+}
void hp9845_printer_device::device_start()
{