diff options
Diffstat (limited to 'src/mame/hegenerglaser')
-rw-r--r-- | src/mame/hegenerglaser/mm2.cpp | 2 | ||||
-rw-r--r-- | src/mame/hegenerglaser/mmboard.cpp | 6 | ||||
-rw-r--r-- | src/mame/hegenerglaser/mmboard.h | 6 | ||||
-rw-r--r-- | src/mame/hegenerglaser/mmdisplay1.cpp | 2 | ||||
-rw-r--r-- | src/mame/hegenerglaser/mmdisplay1.h | 2 | ||||
-rw-r--r-- | src/mame/hegenerglaser/mmdisplay2.cpp | 4 | ||||
-rw-r--r-- | src/mame/hegenerglaser/mmdisplay2.h | 2 | ||||
-rw-r--r-- | src/mame/hegenerglaser/mondial.cpp | 4 | ||||
-rw-r--r-- | src/mame/hegenerglaser/mondial68k.cpp | 2 | ||||
-rw-r--r-- | src/mame/hegenerglaser/montec.cpp | 4 | ||||
-rw-r--r-- | src/mame/hegenerglaser/risc.cpp | 2 | ||||
-rw-r--r-- | src/mame/hegenerglaser/smondial.cpp | 4 |
12 files changed, 20 insertions, 20 deletions
diff --git a/src/mame/hegenerglaser/mm2.cpp b/src/mame/hegenerglaser/mm2.cpp index 8f1b5a7be7f..7455d25ac5e 100644 --- a/src/mame/hegenerglaser/mm2.cpp +++ b/src/mame/hegenerglaser/mm2.cpp @@ -371,7 +371,7 @@ void mm2_state::mm4(machine_config &config) void mm2_state::mm4tk(machine_config &config) { mm4(config); - m_maincpu->set_clock(18000000); + m_maincpu->set_clock(XTAL::u(18000000)); } void mm2_state::mm5(machine_config &config) diff --git a/src/mame/hegenerglaser/mmboard.cpp b/src/mame/hegenerglaser/mmboard.cpp index c784c23a736..4ce2b5b2fc3 100644 --- a/src/mame/hegenerglaser/mmboard.cpp +++ b/src/mame/hegenerglaser/mmboard.cpp @@ -23,7 +23,7 @@ DEFINE_DEVICE_TYPE(MEPHISTO_BUTTONS_BOARD, mephisto_buttons_board_device, "mbboa // constructor //------------------------------------------------- -mephisto_board_device::mephisto_board_device(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, u32 clock) +mephisto_board_device::mephisto_board_device(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, const XTAL &clock) : device_t(mconfig, type, tag, owner, clock) , m_board(*this, "board") , m_led_pwm(*this, "led_pwm") @@ -33,12 +33,12 @@ mephisto_board_device::mephisto_board_device(const machine_config &mconfig, devi { } -mephisto_sensors_board_device::mephisto_sensors_board_device(const machine_config &mconfig, const char *tag, device_t *owner, u32 clock) +mephisto_sensors_board_device::mephisto_sensors_board_device(const machine_config &mconfig, const char *tag, device_t *owner, const XTAL &clock) : mephisto_board_device(mconfig, MEPHISTO_SENSORS_BOARD, tag, owner, clock) { } -mephisto_buttons_board_device::mephisto_buttons_board_device(const machine_config &mconfig, const char *tag, device_t *owner, u32 clock) +mephisto_buttons_board_device::mephisto_buttons_board_device(const machine_config &mconfig, const char *tag, device_t *owner, const XTAL &clock) : mephisto_board_device(mconfig, MEPHISTO_BUTTONS_BOARD, tag, owner, clock) { } diff --git a/src/mame/hegenerglaser/mmboard.h b/src/mame/hegenerglaser/mmboard.h index 0dd69194e51..88b97d8a58d 100644 --- a/src/mame/hegenerglaser/mmboard.h +++ b/src/mame/hegenerglaser/mmboard.h @@ -21,7 +21,7 @@ class mephisto_board_device : public device_t { public: // construction/destruction - mephisto_board_device(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, u32 clock); + mephisto_board_device(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, const XTAL &clock); // configuration helpers void set_disable_leds(bool disable_leds) { m_disable_leds = disable_leds; } @@ -60,7 +60,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, u32 clock = 0); + mephisto_sensors_board_device(const machine_config &mconfig, const char *tag, device_t *owner, const XTAL &clock = XTAL()); protected: // optional information overrides @@ -74,7 +74,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, u32 clock = 0); + mephisto_buttons_board_device(const machine_config &mconfig, const char *tag, device_t *owner, const XTAL &clock = XTAL()); protected: // optional information overrides diff --git a/src/mame/hegenerglaser/mmdisplay1.cpp b/src/mame/hegenerglaser/mmdisplay1.cpp index c7112d6b64c..4b891b0beb2 100644 --- a/src/mame/hegenerglaser/mmdisplay1.cpp +++ b/src/mame/hegenerglaser/mmdisplay1.cpp @@ -18,7 +18,7 @@ DEFINE_DEVICE_TYPE(MEPHISTO_DISPLAY_MODULE1, mephisto_display1_device, "mdisplay // constructor //------------------------------------------------- -mephisto_display1_device::mephisto_display1_device(const machine_config &mconfig, const char *tag, device_t *owner, u32 clock) : +mephisto_display1_device::mephisto_display1_device(const machine_config &mconfig, const char *tag, device_t *owner, const XTAL &clock) : device_t(mconfig, MEPHISTO_DISPLAY_MODULE1, tag, owner, clock), m_digits(*this, "digit%u", 0U), m_output_digit(*this) diff --git a/src/mame/hegenerglaser/mmdisplay1.h b/src/mame/hegenerglaser/mmdisplay1.h index 135bc317daa..89d67d7d1eb 100644 --- a/src/mame/hegenerglaser/mmdisplay1.h +++ b/src/mame/hegenerglaser/mmdisplay1.h @@ -15,7 +15,7 @@ class mephisto_display1_device : public device_t { public: - mephisto_display1_device(const machine_config &mconfig, const char *tag, device_t *owner, u32 clock = 0); + mephisto_display1_device(const machine_config &mconfig, const char *tag, device_t *owner, const XTAL &clock = XTAL()); // callback is optional, it will output to digitx when not used auto output_digit() { return m_output_digit.bind(); } diff --git a/src/mame/hegenerglaser/mmdisplay2.cpp b/src/mame/hegenerglaser/mmdisplay2.cpp index bc893ac81aa..dbe9eb41c48 100644 --- a/src/mame/hegenerglaser/mmdisplay2.cpp +++ b/src/mame/hegenerglaser/mmdisplay2.cpp @@ -21,7 +21,7 @@ DEFINE_DEVICE_TYPE(MEPHISTO_DISPLAY_MODULE2, mephisto_display2_device, "mdisplay // constructor //------------------------------------------------- -mephisto_display2_device::mephisto_display2_device(const machine_config &mconfig, const char *tag, device_t *owner, u32 clock) +mephisto_display2_device::mephisto_display2_device(const machine_config &mconfig, const char *tag, device_t *owner, const XTAL &clock) : device_t(mconfig, MEPHISTO_DISPLAY_MODULE2, tag, owner, clock) , m_lcd(*this, "hd44780") , m_dac(*this, "dac") @@ -46,7 +46,7 @@ void mephisto_display2_device::device_add_mconfig(machine_config &config) PALETTE(config, "palette", FUNC(mephisto_display2_device::lcd_palette), 3); - HD44780(config, m_lcd, 0); + HD44780(config, m_lcd); m_lcd->set_lcd_size(2, 16); m_lcd->set_pixel_update_cb(FUNC(mephisto_display2_device::lcd_pixel_update)); diff --git a/src/mame/hegenerglaser/mmdisplay2.h b/src/mame/hegenerglaser/mmdisplay2.h index b3a1c418d4b..7e7284d2f43 100644 --- a/src/mame/hegenerglaser/mmdisplay2.h +++ b/src/mame/hegenerglaser/mmdisplay2.h @@ -21,7 +21,7 @@ class mephisto_display2_device : public device_t { public: // construction/destruction - mephisto_display2_device(const machine_config &mconfig, const char *tag, device_t *owner, u32 clock = 0); + mephisto_display2_device(const machine_config &mconfig, const char *tag, device_t *owner, const XTAL &clock = XTAL()); hd44780_device *get() { return m_lcd; } diff --git a/src/mame/hegenerglaser/mondial.cpp b/src/mame/hegenerglaser/mondial.cpp index f863e8535d0..9bcae1fbdaa 100644 --- a/src/mame/hegenerglaser/mondial.cpp +++ b/src/mame/hegenerglaser/mondial.cpp @@ -163,7 +163,7 @@ INPUT_PORTS_END void mondial_state::mondial(machine_config &config) { /* basic machine hardware */ - M65SC02(config, m_maincpu, 2000000); + M65SC02(config, m_maincpu, XTAL::u(2000000)); m_maincpu->set_addrmap(AS_PROGRAM, &mondial_state::mondial_mem); const attotime irq_period = attotime::from_hz(2000000 / 0x1000); @@ -182,7 +182,7 @@ void mondial_state::mondial(machine_config &config) /* sound hardware */ SPEAKER(config, "speaker").front_center(); - BEEP(config, m_beeper, 2150); // approximation + BEEP(config, m_beeper, XTAL::u(2150)); // approximation m_beeper->add_route(ALL_OUTPUTS, "speaker", 0.25); } diff --git a/src/mame/hegenerglaser/mondial68k.cpp b/src/mame/hegenerglaser/mondial68k.cpp index 36f228fa1de..1986064be30 100644 --- a/src/mame/hegenerglaser/mondial68k.cpp +++ b/src/mame/hegenerglaser/mondial68k.cpp @@ -205,7 +205,7 @@ void mondial68k_state::mondial68k(machine_config &config) m_board->set_delay(attotime::from_msec(100)); /* video hardware */ - PCF2112(config, m_lcd, 50); // frequency guessed + PCF2112(config, m_lcd, XTAL::u(50)); // frequency guessed m_lcd->write_segs().set(FUNC(mondial68k_state::lcd_output_w)); PWM_DISPLAY(config, m_led_pwm).set_size(2, 8); diff --git a/src/mame/hegenerglaser/montec.cpp b/src/mame/hegenerglaser/montec.cpp index 5239bbb1136..f0b8261d727 100644 --- a/src/mame/hegenerglaser/montec.cpp +++ b/src/mame/hegenerglaser/montec.cpp @@ -199,9 +199,9 @@ void montec_state::montec(machine_config &config) m_board->set_delay(attotime::from_msec(300)); // video hardware - PCF2112(config, m_lcd[0], 50); // frequency guessed + PCF2112(config, m_lcd[0], XTAL::u(50)); // frequency guessed m_lcd[0]->write_segs().set(FUNC(montec_state::lcd_output_w<0>)); - PCF2112(config, m_lcd[1], 50); // " + PCF2112(config, m_lcd[1], XTAL::u(50)); // " m_lcd[1]->write_segs().set(FUNC(montec_state::lcd_output_w<1>)); PWM_DISPLAY(config, m_led_pwm).set_size(4, 4); diff --git a/src/mame/hegenerglaser/risc.cpp b/src/mame/hegenerglaser/risc.cpp index 3f9e8d97a1a..dd14555c209 100644 --- a/src/mame/hegenerglaser/risc.cpp +++ b/src/mame/hegenerglaser/risc.cpp @@ -151,7 +151,7 @@ void risc_state::mrisc(machine_config &config) const attotime irq_period = attotime::from_hz(10_MHz_XTAL / 0x4000); m_maincpu->set_periodic_int(FUNC(risc_state::irq0_line_hold), irq_period); - CHESSMACHINE(config, m_chessm, 14'000'000); // Mephisto manual says 14MHz (no XTAL) + CHESSMACHINE(config, m_chessm, XTAL::u(14'000'000)); // Mephisto manual says 14MHz (no XTAL) config.set_perfect_quantum(m_maincpu); NVRAM(config, "nvram", nvram_device::DEFAULT_ALL_0); diff --git a/src/mame/hegenerglaser/smondial.cpp b/src/mame/hegenerglaser/smondial.cpp index c54f5823cf7..da47ce5243d 100644 --- a/src/mame/hegenerglaser/smondial.cpp +++ b/src/mame/hegenerglaser/smondial.cpp @@ -298,9 +298,9 @@ void smondialb_state::smondialb(machine_config &config) m_board->set_delay(attotime::from_msec(250)); /* video hardware */ - PCF2112(config, m_lcd[0], 50); // frequency guessed + PCF2112(config, m_lcd[0], XTAL::u(50)); // frequency guessed m_lcd[0]->write_segs().set(FUNC(smondialb_state::lcd_output_w<0>)); - PCF2112(config, m_lcd[1], 50); // " + PCF2112(config, m_lcd[1], XTAL::u(50)); // " m_lcd[1]->write_segs().set(FUNC(smondialb_state::lcd_output_w<1>)); PWM_DISPLAY(config, m_led_pwm).set_size(8, 6); |