diff options
author | AJR <ajrhacker@users.noreply.github.com> | 2019-06-01 12:24:54 -0400 |
---|---|---|
committer | AJR <ajrhacker@users.noreply.github.com> | 2019-06-01 12:24:54 -0400 |
commit | 437af9d3bcf55dce3cc8d2c5fa8ca5c47b123518 (patch) | |
tree | 1a3b514c318836f79cad8b1a46f8521dbafdb106 | |
parent | 0a213f860c570c63187b03b109e78bb72671a2c9 (diff) |
systel100: Add keyboard (nw)
-rw-r--r-- | src/mame/drivers/systel1.cpp | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/mame/drivers/systel1.cpp b/src/mame/drivers/systel1.cpp index aacf027f1bd..f9e0ad4b4a6 100644 --- a/src/mame/drivers/systel1.cpp +++ b/src/mame/drivers/systel1.cpp @@ -11,6 +11,7 @@ ***************************************************************************/ #include "emu.h" +#include "bus/rs232/rs232.h" #include "cpu/z80/z80.h" #include "imagedev/floppy.h" #include "machine/clock.h" @@ -183,6 +184,10 @@ static void systel1_floppies(device_slot_interface &device) device.option_add("525dd", FLOPPY_525_DD); } +static DEVICE_INPUT_DEFAULTS_START(keyboard) + DEVICE_INPUT_DEFAULTS("RS232_TXBAUD", 0xff, RS232_BAUD_9600) +DEVICE_INPUT_DEFAULTS_END + void systel1_state::systel1(machine_config &config) { Z80(config, m_maincpu, 2_MHz_XTAL); // Z8400A; clock not verified @@ -227,6 +232,10 @@ void systel1_state::systel1(machine_config &config) FLOPPY_CONNECTOR(config, m_floppy, systel1_floppies, "525dd", floppy_image_device::default_floppy_formats); m_floppy->set_fixed(true); m_floppy->enable_sound(true); + + rs232_port_device &kb(RS232_PORT(config, "kb", default_rs232_devices, "keyboard")); + kb.set_option_device_input_defaults("keyboard", DEVICE_INPUT_DEFAULTS_NAME(keyboard)); + kb.rxd_handler().set("usart", FUNC(i8251_device::write_rxd)); } // RAM: 8x MCM6665AP20 |