summaryrefslogtreecommitdiffstatshomepage
path: root/src/devices/machine/swtpc8212.cpp
diff options
context:
space:
mode:
author Olivier Galibert <galibert@pobox.com>2022-06-16 12:47:52 +0200
committer Olivier Galibert <galibert@pobox.com>2025-04-29 23:06:41 +0200
commit45d4cd52a8194f2ef9e0383cfb2e2a35634af6ff (patch)
tree4e8d8fcb7382a5e9e0bce5ec59939bcfbe67155a /src/devices/machine/swtpc8212.cpp
parent5c14bcdfcb4aefb71b5b62387c4ad05dbeb3814e (diff)
full xtal conversionxtal
Diffstat (limited to 'src/devices/machine/swtpc8212.cpp')
-rw-r--r--src/devices/machine/swtpc8212.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/devices/machine/swtpc8212.cpp b/src/devices/machine/swtpc8212.cpp
index 4d214e43175..1870d4424e7 100644
--- a/src/devices/machine/swtpc8212.cpp
+++ b/src/devices/machine/swtpc8212.cpp
@@ -141,7 +141,7 @@ swtp|ct8212|southwest technical products ct8212,
#include "screen.h"
#include "speaker.h"
-swtpc8212_device::swtpc8212_device(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, uint32_t clock)
+swtpc8212_device::swtpc8212_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_maincpu(*this, "maincpu")
, m_pia0(*this, "pia0")
@@ -163,7 +163,7 @@ swtpc8212_device::swtpc8212_device(const machine_config &mconfig, device_type ty
{
}
-swtpc8212_device::swtpc8212_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock)
+swtpc8212_device::swtpc8212_device(const machine_config &mconfig, const char *tag, device_t *owner, const XTAL &clock)
: swtpc8212_device(mconfig, SWTPC8212, tag, owner, clock)
{
}
@@ -547,14 +547,14 @@ void swtpc8212_device::device_add_mconfig(machine_config &config)
m_crtc->set_show_border_area(false);
m_crtc->set_update_row_callback(FUNC(swtpc8212_device::update_row));
- generic_keyboard_device &keyboard(GENERIC_KEYBOARD(config, "keyboard", 0));
+ generic_keyboard_device &keyboard(GENERIC_KEYBOARD(config, "keyboard"));
keyboard.set_keyboard_callback(FUNC(swtpc8212_device::keyboard_put));
SPEAKER(config, "bell").front_center();
- BEEP(config, m_beeper, 2000);
+ BEEP(config, m_beeper, XTAL::u(2000));
m_beeper->add_route(ALL_OUTPUTS, "bell", 0.25);
- PRINTER(config, m_printer, 0);
+ PRINTER(config, m_printer);
}
ioport_constructor swtpc8212_device::device_input_ports() const