diff options
author | 2019-03-26 11:13:37 +1100 | |
---|---|---|
committer | 2019-03-26 11:13:37 +1100 | |
commit | 97b67170277437131adf6ed4d60139c172529e4f (patch) | |
tree | 7a5cbf608f191075f1612b1af15832c206a3fe2d /src/devices/machine/mc68681.cpp | |
parent | b380514764cf857469bae61c11143a19f79a74c5 (diff) |
(nw) Clean up the mess on master
This effectively reverts b380514764cf857469bae61c11143a19f79a74c5 and
c24473ddff715ecec2e258a6eb38960cf8c8e98e, restoring the state at
598cd5227223c3b04ca31f0dbc1981256d9ea3ff.
Before pushing, please check that what you're about to push is sane.
Check your local commit log and ensure there isn't anything out-of-place
before pushing to mainline. When things like this happen, it wastes
everyone's time. I really don't need this in a week when real work⢠is
busting my balls and I'm behind where I want to be with preparing for
MAME release.
Diffstat (limited to 'src/devices/machine/mc68681.cpp')
-rw-r--r-- | src/devices/machine/mc68681.cpp | 35 |
1 files changed, 19 insertions, 16 deletions
diff --git a/src/devices/machine/mc68681.cpp b/src/devices/machine/mc68681.cpp index b60567aa3f7..a3a3b480979 100644 --- a/src/devices/machine/mc68681.cpp +++ b/src/devices/machine/mc68681.cpp @@ -268,22 +268,25 @@ void xr68c681_device::device_reset() m_XTXA = m_XRXA = m_XTXB = m_XRXB = false; } -MACHINE_CONFIG_START(duart_base_device::device_add_mconfig) - MCFG_DEVICE_ADD(CHANA_TAG, DUART_CHANNEL, 0) - MCFG_DEVICE_ADD(CHANB_TAG, DUART_CHANNEL, 0) -MACHINE_CONFIG_END - -MACHINE_CONFIG_START(sc28c94_device::device_add_mconfig) - MCFG_DEVICE_ADD(CHANA_TAG, DUART_CHANNEL, 0) - MCFG_DEVICE_ADD(CHANB_TAG, DUART_CHANNEL, 0) - MCFG_DEVICE_ADD(CHANC_TAG, DUART_CHANNEL, 0) - MCFG_DEVICE_ADD(CHAND_TAG, DUART_CHANNEL, 0) -MACHINE_CONFIG_END - -MACHINE_CONFIG_START(mc68340_duart_device::device_add_mconfig) - MCFG_DEVICE_ADD(CHANA_TAG, DUART_CHANNEL, 0) - MCFG_DEVICE_ADD(CHANB_TAG, DUART_CHANNEL, 0) -MACHINE_CONFIG_END +void duart_base_device::device_add_mconfig(machine_config &config) +{ + DUART_CHANNEL(config, CHANA_TAG, 0); + DUART_CHANNEL(config, CHANB_TAG, 0); +} + +void sc28c94_device::device_add_mconfig(machine_config &config) +{ + DUART_CHANNEL(config, CHANA_TAG, 0); + DUART_CHANNEL(config, CHANB_TAG, 0); + DUART_CHANNEL(config, CHANC_TAG, 0); + DUART_CHANNEL(config, CHAND_TAG, 0); +} + +void mc68340_duart_device::device_add_mconfig(machine_config &config) +{ + DUART_CHANNEL(config, CHANA_TAG, 0); + DUART_CHANNEL(config, CHANB_TAG, 0); +} void duart_base_device::update_interrupts() { |