summaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
author hap <happppp@users.noreply.github.com>2019-07-10 13:24:08 +0200
committer hap <happppp@users.noreply.github.com>2019-07-10 13:24:08 +0200
commitf34c77ebed9345f1e616146ba683dbb3eda2a747 (patch)
tree6610916638bb4040f67129a8b9820702395d627c
parent9566fb07763d6a2a696b8a5e449ec03c74498307 (diff)
mmboard: update prev commit, didnt notice that it has its own set_delay (nw)
-rw-r--r--src/mame/drivers/glasgow.cpp3
-rw-r--r--src/mame/drivers/mephisto.cpp2
-rw-r--r--src/mame/drivers/mephisto_montec.cpp4
-rw-r--r--src/mame/drivers/mmodular.cpp16
-rw-r--r--src/mame/drivers/modena.cpp2
-rw-r--r--src/mame/drivers/polgar.cpp10
-rw-r--r--src/mame/machine/mmboard.cpp2
-rw-r--r--src/mame/machine/mmboard.h6
8 files changed, 23 insertions, 22 deletions
diff --git a/src/mame/drivers/glasgow.cpp b/src/mame/drivers/glasgow.cpp
index 3c96046532c..493b437c042 100644
--- a/src/mame/drivers/glasgow.cpp
+++ b/src/mame/drivers/glasgow.cpp
@@ -314,7 +314,8 @@ void glasgow_state::glasgow(machine_config &config)
M68000(config, m_maincpu, 12_MHz_XTAL);
m_maincpu->set_addrmap(AS_PROGRAM, &glasgow_state::glasgow_mem);
- MEPHISTO_SENSORS_BOARD(config, m_board, 0);
+ MEPHISTO_SENSORS_BOARD(config, m_board);
+ m_board->set_delay(attotime::from_msec(200));
/* video hardware */
config.set_default_layout(layout_glasgow);
diff --git a/src/mame/drivers/mephisto.cpp b/src/mame/drivers/mephisto.cpp
index d1c142e3194..eea2c099a98 100644
--- a/src/mame/drivers/mephisto.cpp
+++ b/src/mame/drivers/mephisto.cpp
@@ -316,7 +316,7 @@ void mephisto_state::mephisto(machine_config &config)
TIMER(config, "nmi_timer").configure_periodic(FUNC(mephisto_state::update_nmi), attotime::from_hz(600));
- MEPHISTO_SENSORS_BOARD(config, "board", 0);
+ MEPHISTO_SENSORS_BOARD(config, "board");
config.set_default_layout(layout_mephisto);
}
diff --git a/src/mame/drivers/mephisto_montec.cpp b/src/mame/drivers/mephisto_montec.cpp
index 19b6d074817..57b232541ad 100644
--- a/src/mame/drivers/mephisto_montec.cpp
+++ b/src/mame/drivers/mephisto_montec.cpp
@@ -470,7 +470,7 @@ void mephisto_montec_state::montec(machine_config &config)
SPEAKER(config, "mono").front_center();
BEEP(config, m_beeper, 3250).add_route(ALL_OUTPUTS, "mono", 1.0);
- MEPHISTO_SENSORS_BOARD(config, m_board, 0);
+ MEPHISTO_SENSORS_BOARD(config, m_board);
m_board->set_delay(attotime::from_msec(300));
config.set_default_layout(layout_mephisto_montec);
@@ -490,7 +490,7 @@ void mephisto_montec_state::megaiv(machine_config &config)
m_maincpu->set_addrmap(AS_PROGRAM, &mephisto_montec_state::megaiv_mem);
m_maincpu->set_periodic_int(FUNC(mephisto_montec_state::nmi_line_pulse), attotime::from_hz(XTAL(4'915'200) / (1 << 13)));
- MEPHISTO_BUTTONS_BOARD(config.replace(), m_board, 0);
+ MEPHISTO_BUTTONS_BOARD(config.replace(), m_board);
m_board->set_delay(attotime::from_msec(250));
m_board->set_disable_leds(true);
config.set_default_layout(layout_mephisto_megaiv);
diff --git a/src/mame/drivers/mmodular.cpp b/src/mame/drivers/mmodular.cpp
index 25a256d9d92..20494ee60af 100644
--- a/src/mame/drivers/mmodular.cpp
+++ b/src/mame/drivers/mmodular.cpp
@@ -261,8 +261,8 @@ void mmodular_state::alm16(machine_config &config)
maincpu.set_addrmap(AS_PROGRAM, &mmodular_state::alm16_mem);
maincpu.set_periodic_int(FUNC(mmodular_state::irq2_line_hold), attotime::from_hz(600));
- MEPHISTO_SENSORS_BOARD(config, "board", 0);
- MEPHISTO_DISPLAY_MODUL(config, "display", 0);
+ MEPHISTO_SENSORS_BOARD(config, "board");
+ MEPHISTO_DISPLAY_MODUL(config, "display");
config.set_default_layout(layout_mmodular);
}
@@ -282,8 +282,8 @@ void mmodular_state::alm32(machine_config &config)
NVRAM(config, "nvram", nvram_device::DEFAULT_ALL_0);
- MEPHISTO_SENSORS_BOARD(config, "board", 0);
- MEPHISTO_DISPLAY_MODUL(config, "display", 0);
+ MEPHISTO_SENSORS_BOARD(config, "board");
+ MEPHISTO_DISPLAY_MODUL(config, "display");
config.set_default_layout(layout_mmodular);
}
@@ -303,8 +303,8 @@ void mmodular_state::gen32(machine_config &config)
NVRAM(config, "nvram", nvram_device::DEFAULT_ALL_0);
- MEPHISTO_SENSORS_BOARD(config, "board", 0);
- MEPHISTO_DISPLAY_MODUL(config, "display", 0);
+ MEPHISTO_SENSORS_BOARD(config, "board");
+ MEPHISTO_DISPLAY_MODUL(config, "display");
config.set_default_layout(layout_mmodular);
}
@@ -317,8 +317,8 @@ void berlinp_state::berlinp(machine_config &config)
NVRAM(config, "nvram", nvram_device::DEFAULT_ALL_0);
- MEPHISTO_BUTTONS_BOARD(config, m_board, 0);
- MEPHISTO_DISPLAY_MODUL(config, "display", 0);
+ MEPHISTO_BUTTONS_BOARD(config, m_board);
+ MEPHISTO_DISPLAY_MODUL(config, "display");
config.set_default_layout(layout_mmodular);
}
diff --git a/src/mame/drivers/modena.cpp b/src/mame/drivers/modena.cpp
index 43fce448759..61601a7e8c5 100644
--- a/src/mame/drivers/modena.cpp
+++ b/src/mame/drivers/modena.cpp
@@ -149,7 +149,7 @@ void mephisto_modena_state::modena(machine_config &config)
NVRAM(config, "nvram", nvram_device::DEFAULT_ALL_0);
- MEPHISTO_BUTTONS_BOARD(config, m_board, 0);
+ MEPHISTO_BUTTONS_BOARD(config, m_board);
m_board->set_disable_leds(true);
config.set_default_layout(layout_mephisto_modena);
diff --git a/src/mame/drivers/polgar.cpp b/src/mame/drivers/polgar.cpp
index 7a6534bebc0..9f1222f8ea2 100644
--- a/src/mame/drivers/polgar.cpp
+++ b/src/mame/drivers/polgar.cpp
@@ -311,8 +311,8 @@ void mephisto_polgar_state::polgar(machine_config &config)
outlatch.q_out_cb<4>().set_output("led104");
outlatch.q_out_cb<5>().set_output("led105");
- MEPHISTO_SENSORS_BOARD(config, "board", 0);
- MEPHISTO_DISPLAY_MODUL(config, "display", 0);
+ MEPHISTO_SENSORS_BOARD(config, "board");
+ MEPHISTO_DISPLAY_MODUL(config, "display");
config.set_default_layout(layout_mephisto_lcd);
}
@@ -342,8 +342,8 @@ void mephisto_risc_state::mrisc(machine_config &config)
outlatch.q_out_cb<5>().set_output("led105");
outlatch.parallel_out_cb().set_membank("rombank").rshift(6).mask(0x03).exor(0x01);
- MEPHISTO_SENSORS_BOARD(config, "board", 0);
- MEPHISTO_DISPLAY_MODUL(config, "display", 0);
+ MEPHISTO_SENSORS_BOARD(config, "board");
+ MEPHISTO_DISPLAY_MODUL(config, "display");
config.set_default_layout(layout_mephisto_lcd);
}
@@ -352,7 +352,7 @@ void mephisto_milano_state::milano(machine_config &config)
polgar(config);
subdevice<m65c02_device>("maincpu")->set_addrmap(AS_PROGRAM, &mephisto_milano_state::milano_mem);
- MEPHISTO_BUTTONS_BOARD(config.replace(), m_board, 0);
+ MEPHISTO_BUTTONS_BOARD(config.replace(), m_board);
m_board->set_disable_leds(true);
config.set_default_layout(layout_mephisto_milano);
}
diff --git a/src/mame/machine/mmboard.cpp b/src/mame/machine/mmboard.cpp
index 8886689450e..66340bf3e11 100644
--- a/src/mame/machine/mmboard.cpp
+++ b/src/mame/machine/mmboard.cpp
@@ -59,7 +59,7 @@ void mephisto_buttons_board_device::device_add_mconfig(machine_config &config)
mephisto_board_device::mephisto_board_device(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, uint32_t clock)
: device_t(mconfig, type, tag, owner, clock)
, m_board(*this, "board")
- , m_sensordelay(attotime::from_msec(200))
+ , m_sensordelay(attotime::from_msec(150))
, m_led(*this, "led%u", 0U)
, m_disable_leds(false)
{
diff --git a/src/mame/machine/mmboard.h b/src/mame/machine/mmboard.h
index eed4a61d818..2ea9ed3eec1 100644
--- a/src/mame/machine/mmboard.h
+++ b/src/mame/machine/mmboard.h
@@ -67,7 +67,7 @@ class mephisto_sensors_board_device : public mephisto_board_device
{
public:
// construction/destruction
- mephisto_sensors_board_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock);
+ mephisto_sensors_board_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock = 0);
protected:
@@ -82,7 +82,7 @@ class mephisto_buttons_board_device : public mephisto_board_device
{
public:
// construction/destruction
- mephisto_buttons_board_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock);
+ mephisto_buttons_board_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock = 0);
protected:
@@ -97,7 +97,7 @@ class mephisto_display_modul_device : public device_t
{
public:
// construction/destruction
- mephisto_display_modul_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock);
+ mephisto_display_modul_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock = 0);
DECLARE_WRITE8_MEMBER(latch_w);
DECLARE_WRITE8_MEMBER(io_w);