diff options
author | smf- <smf-@users.noreply.github.com> | 2013-12-20 00:26:35 +0000 |
---|---|---|
committer | smf- <smf-@users.noreply.github.com> | 2013-12-20 00:26:35 +0000 |
commit | 10be53e45e0da6089a413dde34089325a246689d (patch) | |
tree | 42a6a4bbb20c1dafca5d62fe7db55795cf28df75 /src/mess/drivers/esqkt.c | |
parent | 297064c46d13cf55e7b38679a54c6d53c44dabdb (diff) |
converted serial & rs232 devices to devcb2 [smf]
Diffstat (limited to 'src/mess/drivers/esqkt.c')
-rw-r--r-- | src/mess/drivers/esqkt.c | 17 |
1 files changed, 5 insertions, 12 deletions
diff --git a/src/mess/drivers/esqkt.c b/src/mess/drivers/esqkt.c index 8a154743ce2..300dd27509e 100644 --- a/src/mess/drivers/esqkt.c +++ b/src/mess/drivers/esqkt.c @@ -240,20 +240,10 @@ static SLOT_INTERFACE_START(midiin_slot) SLOT_INTERFACE("midiin", MIDIIN_PORT) SLOT_INTERFACE_END -static const serial_port_interface midiin_intf = -{ - DEVCB_DEVICE_LINE_MEMBER("duart", duartn68681_device, rx_a_w) // route MIDI Tx send directly to 68681 channel A Rx -}; - static SLOT_INTERFACE_START(midiout_slot) SLOT_INTERFACE("midiout", MIDIOUT_PORT) SLOT_INTERFACE_END -static const serial_port_interface midiout_intf = -{ - DEVCB_NULL // midi out ports don't transmit inward -}; - static MACHINE_CONFIG_START( kt, esqkt_state ) MCFG_CPU_ADD("maincpu", M68EC020, XTAL_16MHz) MCFG_CPU_PROGRAM_MAP(kt_map) @@ -264,8 +254,11 @@ static MACHINE_CONFIG_START( kt, esqkt_state ) MCFG_ESQPANEL2x40_SQ1_ADD("sq1panel", esqpanel_config) MCFG_DUARTN68681_ADD("duart", 4000000, duart_config) - MCFG_SERIAL_PORT_ADD("mdin", midiin_intf, midiin_slot, "midiin") - MCFG_SERIAL_PORT_ADD("mdout", midiout_intf, midiout_slot, "midiout") + + MCFG_SERIAL_PORT_ADD("mdin", midiin_slot, "midiin") + MCFG_SERIAL_OUT_RX_HANDLER(DEVWRITELINE("duart", duartn68681_device, rx_a_w)) // route MIDI Tx send directly to 68681 channel A Rx + + MCFG_SERIAL_PORT_ADD("mdout", midiout_slot, "midiout") MCFG_SPEAKER_STANDARD_STEREO("lspeaker", "rspeaker") MCFG_SOUND_ADD("ensoniq", ES5506, XTAL_16MHz) |