diff options
author | Dirk Best <mail@dirk-best.de> | 2017-11-10 01:01:13 +0100 |
---|---|---|
committer | Dirk Best <mail@dirk-best.de> | 2017-11-10 01:02:05 +0100 |
commit | 7b529cc3fbd21bc367269485a17b872465da7473 (patch) | |
tree | 47265b71af367214825e57a6663afa76369aebc0 | |
parent | 31f5670ba9679309b3403769f29ad4cad9b31b34 (diff) |
einstein: Hook up RS232 port
-rw-r--r-- | src/mame/drivers/einstein.cpp | 19 |
1 files changed, 14 insertions, 5 deletions
diff --git a/src/mame/drivers/einstein.cpp b/src/mame/drivers/einstein.cpp index bc15d0a1835..f0f9421e9cd 100644 --- a/src/mame/drivers/einstein.cpp +++ b/src/mame/drivers/einstein.cpp @@ -6,9 +6,7 @@ Tatung Einstein TODO: - - Verify centronics printer - - Hook up RS232 port - - Einstein 256 support + - Einstein 256 support (need bios dump) ******************************************************************************/ @@ -19,6 +17,7 @@ #include "bus/centronics/ctronics.h" #include "bus/einstein/pipe/pipe.h" #include "bus/einstein/userport/userport.h" +#include "bus/rs232/rs232.h" #include "machine/adc0844.h" #include "machine/clock.h" #include "machine/i8251.h" @@ -604,9 +603,19 @@ static MACHINE_CONFIG_START( einstein ) MCFG_TIMER_DRIVER_ADD("strobe", einstein_state, strobe_callback) - /* uart */ - MCFG_DEVICE_ADD(IC_I060, I8251, 0) + // uart + MCFG_DEVICE_ADD(IC_I060, I8251, XTAL_X002 / 4) + MCFG_I8251_TXD_HANDLER(DEVWRITELINE("rs232", rs232_port_device, write_txd)) + MCFG_I8251_RTS_HANDLER(DEVWRITELINE("rs232", rs232_port_device, write_rts)) + MCFG_I8251_DTR_HANDLER(DEVWRITELINE("rs232", rs232_port_device, write_dtr)) + // rs232 port + MCFG_RS232_PORT_ADD("rs232", default_rs232_devices, nullptr) + MCFG_RS232_RXD_HANDLER(DEVWRITELINE(IC_I060, i8251_device, write_rxd)) + MCFG_RS232_DSR_HANDLER(DEVWRITELINE(IC_I060, i8251_device, write_dsr)) + MCFG_RS232_CTS_HANDLER(DEVWRITELINE(IC_I060, i8251_device, write_cts)) + + // floppy MCFG_WD1770_ADD(IC_I042, XTAL_X002) MCFG_FLOPPY_DRIVE_ADD(IC_I042 ":0", einstein_floppies, "3ss", floppy_image_device::default_floppy_formats) |