summaryrefslogtreecommitdiffstatshomepage
path: root/src/mame/machine/mmboard.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/mame/machine/mmboard.h')
-rw-r--r--src/mame/machine/mmboard.h23
1 files changed, 10 insertions, 13 deletions
diff --git a/src/mame/machine/mmboard.h b/src/mame/machine/mmboard.h
index 554b79424db..ad82be7951d 100644
--- a/src/mame/machine/mmboard.h
+++ b/src/mame/machine/mmboard.h
@@ -15,6 +15,8 @@
#include "machine/sensorboard.h"
#include "video/hd44780.h"
#include "sound/dac.h"
+#include "video/pwm.h"
+
#include "emupal.h"
#include "screen.h"
#include "speaker.h"
@@ -33,32 +35,29 @@ public:
mephisto_board_device(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, uint32_t clock);
// configuration helpers
- void set_disable_leds(int _disable_leds) { m_disable_leds = _disable_leds; }
- void set_delay(attotime _sensordelay) { m_sensordelay = _sensordelay; }
+ void set_disable_leds(int disable_leds) { m_disable_leds = disable_leds; }
+ void set_delay(attotime sensordelay) { m_sensordelay = sensordelay; }
DECLARE_READ8_MEMBER(input_r);
DECLARE_WRITE8_MEMBER(led_w);
DECLARE_READ8_MEMBER(mux_r);
DECLARE_WRITE8_MEMBER(mux_w);
- TIMER_CALLBACK_MEMBER(leds_update_callback);
- TIMER_CALLBACK_MEMBER(leds_refresh_callback);
-
protected:
// device-level overrides
virtual void device_start() override;
virtual void device_reset() override;
-protected:
+ void set_config(machine_config &config, sensorboard_device::sb_type board_type);
+ DECLARE_WRITE8_MEMBER(refresh_leds_w);
+
required_device<sensorboard_device> m_board;
+ required_device<pwm_display_device> m_led_pwm;
attotime m_sensordelay;
- output_finder<64> m_led;
- emu_timer * m_leds_update_timer;
- emu_timer * m_leds_refresh_timer;
+ output_finder<64> m_led_out;
bool m_disable_leds;
+ uint8_t m_led_data;
uint8_t m_mux;
- uint8_t m_leds;
- uint8_t m_leds_state[64];
};
// ======================> mephisto_sensors_board_device
@@ -70,7 +69,6 @@ public:
mephisto_sensors_board_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock = 0);
protected:
-
// optional information overrides
virtual void device_add_mconfig(machine_config &config) override;
};
@@ -85,7 +83,6 @@ public:
mephisto_buttons_board_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock = 0);
protected:
-
// optional information overrides
virtual void device_add_mconfig(machine_config &config) override;
};