summaryrefslogtreecommitdiffstatshomepage
path: root/src
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
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')
-rw-r--r--src/mame/drivers/iteagle.cpp8
-rw-r--r--src/mame/drivers/vegas.cpp2
-rw-r--r--src/mame/machine/iteagle_fpga.cpp12
3 files changed, 14 insertions, 8 deletions
diff --git a/src/mame/drivers/iteagle.cpp b/src/mame/drivers/iteagle.cpp
index 9f7e06f43c3..63b31a951ab 100644
--- a/src/mame/drivers/iteagle.cpp
+++ b/src/mame/drivers/iteagle.cpp
@@ -168,10 +168,10 @@ void iteagle_state::machine_reset()
void iteagle_state::iteagle(machine_config &config)
{
/* basic machine hardware */
- VR4310LE(config, m_maincpu, 166666666);
+ VR4310LE(config, m_maincpu, 133'333'333);
m_maincpu->set_icache_size(16384);
m_maincpu->set_dcache_size(8192);
- m_maincpu->set_system_clock(66666667);
+ m_maincpu->set_system_clock(66'666'666);
PCI_ROOT(config, "pci", 0);
@@ -292,10 +292,6 @@ void iteagle_state::bbhcotw(machine_config &config)
void iteagle_state::virtpool(machine_config &config)
{
iteagle(config);
- // Not sure what the actual value should be
- // Setting a lower frequency helps delay the tutorial screen premature cut-out
- m_maincpu->set_clock(99999999);
- m_maincpu->set_system_clock(33333333);
voodoo_1_pci_device &voodoo(VOODOO_1_PCI(config.replace(), PCI_ID_VIDEO, 0, m_maincpu, "screen"));
voodoo.set_fbmem(4);
diff --git a/src/mame/drivers/vegas.cpp b/src/mame/drivers/vegas.cpp
index 7e838f1b0ba..92c834e9d59 100644
--- a/src/mame/drivers/vegas.cpp
+++ b/src/mame/drivers/vegas.cpp
@@ -789,7 +789,7 @@ uint8_t vegas_state::sio_r(offs_t offset)
result = (((m_io_8way[2]->read() & 0x40) >> 3) | ((m_io_8way[3]->read() & 0x7000) >> 8));
break;
}
- logerror("%s: sio_r: offset: %08x index: %d result: %02X\n", machine().describe_context(), offset, index, result);
+ if (LOG_SIO) logerror("%s: sio_r: offset: %08x index: %d result: %02X\n", machine().describe_context(), offset, index, result);
break;
}
}
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()