summaryrefslogtreecommitdiffstatshomepage
path: root/src/devices/machine/mc68681.cpp
diff options
context:
space:
mode:
author Ivan Vangelista <mesgnet@yahoo.it>2017-06-01 15:17:47 +0200
committer Ivan Vangelista <mesgnet@yahoo.it>2017-06-01 15:17:47 +0200
commit472be8055fc05670b5e37726130792b0472ec230 (patch)
tree9430dbbbad81e7ac89e7a3e137da9bdbebf48c7d /src/devices/machine/mc68681.cpp
parentcc9a0e699fd16e5c7245ae018e61fb6f18e9ccac (diff)
some more devices/machine to device_add_mconfig (nw)
Diffstat (limited to 'src/devices/machine/mc68681.cpp')
-rw-r--r--src/devices/machine/mc68681.cpp29
1 files changed, 10 insertions, 19 deletions
diff --git a/src/devices/machine/mc68681.cpp b/src/devices/machine/mc68681.cpp
index 66bdc2853e2..c000feadd15 100644
--- a/src/devices/machine/mc68681.cpp
+++ b/src/devices/machine/mc68681.cpp
@@ -61,17 +61,6 @@ DEFINE_DEVICE_TYPE(MC68681, mc68681_device, "mc68681", "MC68681 DUART")
DEFINE_DEVICE_TYPE(SC28C94, sc28c94_device, "sc28c94", "SC28C94 QUART")
DEFINE_DEVICE_TYPE(MC68681_CHANNEL, mc68681_channel, "mc68681_channel", "MC68681 DUART channel")
-MACHINE_CONFIG_START( duart68681 )
- MCFG_DEVICE_ADD(CHANA_TAG, MC68681_CHANNEL, 0)
- MCFG_DEVICE_ADD(CHANB_TAG, MC68681_CHANNEL, 0)
-MACHINE_CONFIG_END
-
-MACHINE_CONFIG_START( quart28c94 )
- MCFG_DEVICE_ADD(CHANA_TAG, MC68681_CHANNEL, 0)
- MCFG_DEVICE_ADD(CHANB_TAG, MC68681_CHANNEL, 0)
- MCFG_DEVICE_ADD(CHANC_TAG, MC68681_CHANNEL, 0)
- MCFG_DEVICE_ADD(CHAND_TAG, MC68681_CHANNEL, 0)
-MACHINE_CONFIG_END
//**************************************************************************
// LIVE DEVICE
@@ -170,15 +159,17 @@ void mc68681_base_device::device_reset()
write_outport(OPR ^ 0xff);
}
-machine_config_constructor mc68681_base_device::device_mconfig_additions() const
-{
- return MACHINE_CONFIG_NAME( duart68681 );
-}
+MACHINE_CONFIG_MEMBER( mc68681_base_device::device_add_mconfig )
+ MCFG_DEVICE_ADD(CHANA_TAG, MC68681_CHANNEL, 0)
+ MCFG_DEVICE_ADD(CHANB_TAG, MC68681_CHANNEL, 0)
+MACHINE_CONFIG_END
-machine_config_constructor sc28c94_device::device_mconfig_additions() const
-{
- return MACHINE_CONFIG_NAME( quart28c94 );
-}
+MACHINE_CONFIG_MEMBER( sc28c94_device::device_add_mconfig )
+ MCFG_DEVICE_ADD(CHANA_TAG, MC68681_CHANNEL, 0)
+ MCFG_DEVICE_ADD(CHANB_TAG, MC68681_CHANNEL, 0)
+ MCFG_DEVICE_ADD(CHANC_TAG, MC68681_CHANNEL, 0)
+ MCFG_DEVICE_ADD(CHAND_TAG, MC68681_CHANNEL, 0)
+MACHINE_CONFIG_END
void mc68681_base_device::update_interrupts()
{