summaryrefslogtreecommitdiffstatshomepage
path: root/src/mame/machine
diff options
context:
space:
mode:
author Ted Green <tedgreen99@users.noreply.github.com>2022-05-08 10:14:26 -0600
committer Ted Green <tedgreen99@users.noreply.github.com>2022-05-08 10:14:26 -0600
commit6259cd5fd30ed958d42f138c2ec441bb26dd4e66 (patch)
tree944c6fdf4dbb801cf1dd50ac42d3fed934d5b1d7 /src/mame/machine
parentac0d4591934d66916cdc8bcd0d5473eefd7c936d (diff)
iteagle.cpp: Adjust processor clock. Gives proper 1ms ostick now.
iteagle_fpga.cpp: Add default console terminal serial port settings. vegas.cpp: Mask logging of sio_r.
Diffstat (limited to 'src/mame/machine')
-rw-r--r--src/mame/machine/iteagle_fpga.cpp12
1 files changed, 11 insertions, 1 deletions
diff --git a/src/mame/machine/iteagle_fpga.cpp b/src/mame/machine/iteagle_fpga.cpp
index fd54ccd8ec6..9626de12edd 100644
--- a/src/mame/machine/iteagle_fpga.cpp
+++ b/src/mame/machine/iteagle_fpga.cpp
@@ -51,28 +51,38 @@ iteagle_fpga_device::iteagle_fpga_device(const machine_config &mconfig, const ch
set_ids(0x55cc33aa, 0xaa, 0xaaaaaa, 0x00);
}
+static DEVICE_INPUT_DEFAULTS_START(iteagle_com_default)
+ DEVICE_INPUT_DEFAULTS("RS232_TXBAUD", 0xff, RS232_BAUD_38400)
+ DEVICE_INPUT_DEFAULTS("RS232_RXBAUD", 0xff, RS232_BAUD_38400)
+ DEVICE_INPUT_DEFAULTS("RS232_DATABITS", 0xff, RS232_DATABITS_8)
+ DEVICE_INPUT_DEFAULTS("RS232_PARITY", 0xff, RS232_PARITY_NONE)
+ DEVICE_INPUT_DEFAULTS("RS232_STOPBITS", 0xff, RS232_STOPBITS_1)
+DEVICE_INPUT_DEFAULTS_END
+
void iteagle_fpga_device::device_add_mconfig(machine_config &config)
{
NVRAM(config, "eagle2_rtc", nvram_device::DEFAULT_ALL_0);
NVRAM(config, "eagle1_bram", nvram_device::DEFAULT_ALL_1);
// RS232 serial ports
- // The console terminal (com1) operates at 38400 baud
SCC85C30(config, m_scc1, 7.3728_MHz_XTAL);
m_scc1->configure_channels((7.3728_MHz_XTAL).value(), 0, (7.3728_MHz_XTAL).value(), 0);
m_scc1->out_int_callback().set(FUNC(iteagle_fpga_device::serial_interrupt));
m_scc1->out_txda_callback().set(COM2_TAG, FUNC(rs232_port_device::write_txd));
m_scc1->out_txdb_callback().set(COM1_TAG, FUNC(rs232_port_device::write_txd));
+ // The console terminal (com1) operates at 38400 baud
rs232_port_device &com1(RS232_PORT(config, COM1_TAG, default_rs232_devices, nullptr));
com1.rxd_handler().set(m_scc1, FUNC(scc85c30_device::rxb_w));
com1.dcd_handler().set(m_scc1, FUNC(scc85c30_device::dcdb_w));
com1.cts_handler().set(m_scc1, FUNC(scc85c30_device::ctsb_w));
+ com1.set_option_device_input_defaults("terminal", DEVICE_INPUT_DEFAULTS_NAME(iteagle_com_default));
rs232_port_device &com2(RS232_PORT(config, COM2_TAG, default_rs232_devices, nullptr));
com2.rxd_handler().set(m_scc1, FUNC(scc85c30_device::rxa_w));
com2.dcd_handler().set(m_scc1, FUNC(scc85c30_device::dcda_w));
com2.cts_handler().set(m_scc1, FUNC(scc85c30_device::ctsa_w));
+ com2.set_option_device_input_defaults("terminal", DEVICE_INPUT_DEFAULTS_NAME(iteagle_com_default));
}
void iteagle_fpga_device::device_start()