summaryrefslogtreecommitdiffstatshomepage
path: root/src/mess/drivers/vk100.c
diff options
context:
space:
mode:
author smf- <smf-@users.noreply.github.com>2014-02-15 01:29:27 +0000
committer smf- <smf-@users.noreply.github.com>2014-02-15 01:29:27 +0000
commitb37d92de7246ff7da31a235b996e89db6f8c8d22 (patch)
tree616a8439278f4ff3331b677c9b841ed71657290a /src/mess/drivers/vk100.c
parent88bc8a4673a710bdcdd2640f39b3b33bc2b76ab0 (diff)
created src\emu\bus\rs232 & src\emu\bus\midi directories and separated rs232 and midi devices, changed h89 to use an rs232 port to communicate with the serial terminal to instead of connecting it directly. [smf]
Diffstat (limited to 'src/mess/drivers/vk100.c')
-rw-r--r--src/mess/drivers/vk100.c17
1 files changed, 9 insertions, 8 deletions
diff --git a/src/mess/drivers/vk100.c b/src/mess/drivers/vk100.c
index 59f186d9828..bc5eedee9ee 100644
--- a/src/mess/drivers/vk100.c
+++ b/src/mess/drivers/vk100.c
@@ -146,13 +146,12 @@ state machine and sees if the GO bit ever finishes and goes back to 0
// debug state dump for the vector generator
#undef DEBUG_VG_STATE
-#include "emu.h"
+#include "bus/rs232/rs232.h"
#include "cpu/i8085/i8085.h"
#include "sound/beep.h"
#include "video/mc6845.h"
#include "machine/com8116.h"
#include "machine/i8251.h"
-#include "machine/serial.h"
#include "vk100.lh"
#define RS232_TAG "rs232"
@@ -179,7 +178,9 @@ public:
m_capsshift(*this, "CAPSSHIFT"),
m_dipsw(*this, "SWITCHES")
- { }
+ {
+ }
+
required_device<cpu_device> m_maincpu;
required_device<mc6845_device> m_crtc;
required_device<beep_device> m_speaker;
@@ -1010,9 +1011,9 @@ static MC6845_INTERFACE( mc6845_intf )
static const i8251_interface i8251_intf =
{
- DEVCB_DEVICE_LINE_MEMBER(RS232_TAG, serial_port_device, tx),
- DEVCB_DEVICE_LINE_MEMBER(RS232_TAG, rs232_port_device, dtr_w),
- DEVCB_DEVICE_LINE_MEMBER(RS232_TAG, rs232_port_device, rts_w),
+ DEVCB_DEVICE_LINE_MEMBER(RS232_TAG, rs232_port_device, write_txd),
+ DEVCB_DEVICE_LINE_MEMBER(RS232_TAG, rs232_port_device, write_dtr),
+ DEVCB_DEVICE_LINE_MEMBER(RS232_TAG, rs232_port_device, write_rts),
//DEVCB_DRIVER_LINE_MEMBER(vk100_state, i8251_rts), // out_rts_cb
DEVCB_DRIVER_LINE_MEMBER(vk100_state, i8251_rxrdy_int), // out_rxrdy_cb
DEVCB_DRIVER_LINE_MEMBER(vk100_state, i8251_txrdy_int), // out_txrdy_cb
@@ -1037,8 +1038,8 @@ static MACHINE_CONFIG_START( vk100, vk100_state )
MCFG_I8251_ADD("i8251", i8251_intf)
MCFG_RS232_PORT_ADD(RS232_TAG, default_rs232_devices, NULL)
- MCFG_SERIAL_OUT_RX_HANDLER(DEVWRITELINE("i8251", i8251_device, write_rx))
- MCFG_RS232_OUT_DSR_HANDLER(DEVWRITELINE("i8251", i8251_device, write_dsr))
+ MCFG_RS232_RXD_HANDLER(DEVWRITELINE("i8251", i8251_device, write_rx))
+ MCFG_RS232_DSR_HANDLER(DEVWRITELINE("i8251", i8251_device, write_dsr))
MCFG_COM8116_ADD(COM5016T_TAG, XTAL_5_0688MHz, NULL, DEVWRITELINE("i8251", i8251_device, rxc_w), DEVWRITELINE("i8251", i8251_device, txc_w))