diff options
author | Ivan Vangelista <mesgnet@yahoo.it> | 2018-10-30 18:04:42 +0100 |
---|---|---|
committer | Ivan Vangelista <mesgnet@yahoo.it> | 2018-10-30 18:04:42 +0100 |
commit | f3a0f0dffb59955222cd69811e114cd89fd321ad (patch) | |
tree | 57daf8a15bc552fdba917f26cd2f54d9f868a305 /src/mame/drivers/ms0515.cpp | |
parent | 711efa4a9006623a8245d6ec31ff868d9bcdb8cb (diff) |
pit8253.h: removed MCFG macros (nw)
Diffstat (limited to 'src/mame/drivers/ms0515.cpp')
-rw-r--r-- | src/mame/drivers/ms0515.cpp | 17 |
1 files changed, 8 insertions, 9 deletions
diff --git a/src/mame/drivers/ms0515.cpp b/src/mame/drivers/ms0515.cpp index e583f0839c8..ee0c2878ea7 100644 --- a/src/mame/drivers/ms0515.cpp +++ b/src/mame/drivers/ms0515.cpp @@ -576,17 +576,16 @@ MACHINE_CONFIG_START(ms0515_state::ms0515) MCFG_DEVICE_ADD("keyboard_clock", CLOCK, 4960*16) MCFG_CLOCK_SIGNAL_HANDLER(WRITELINE(*this, ms0515_state, write_keyboard_clock)) - MCFG_DEVICE_ADD("pit8253", PIT8253, 0) - MCFG_PIT8253_CLK0(XTAL(2'000'000)) -// MCFG_PIT8253_OUT0_HANDLER(WRITELINE(*this, ms0515_state, write_keyboard_clock)) - MCFG_PIT8253_CLK1(XTAL(2'000'000)) - MCFG_PIT8253_OUT0_HANDLER(WRITELINE(*this, ms0515_state, write_line_clock)) - MCFG_PIT8253_CLK2(XTAL(2'000'000)) - MCFG_PIT8253_OUT2_HANDLER(WRITELINE(*this, ms0515_state, pit8253_out2_changed)) + PIT8253(config, m_pit8253, 0); + m_pit8253->set_clk<0>(XTAL(2'000'000)); +// m_pit8253->out_handler<0>().set(FUNC(ms0515_state::write_keyboard_clock)); + m_pit8253->set_clk<1>(XTAL(2'000'000)); + m_pit8253->out_handler<0>().set(FUNC(ms0515_state::write_line_clock)); + m_pit8253->set_clk<2>(XTAL(2'000'000)); + m_pit8253->out_handler<2>().set(FUNC(ms0515_state::pit8253_out2_changed)); SPEAKER(config, "mono").front_center(); - MCFG_DEVICE_ADD("speaker", SPEAKER_SOUND) - MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.45) + SPEAKER_SOUND(config, m_speaker).add_route(ALL_OUTPUTS, "mono", 0.45); /* internal ram */ RAM(config, RAM_TAG).set_default_size("128K"); |