diff options
author | Olivier Galibert <galibert@pobox.com> | 2018-01-21 23:42:41 +0100 |
---|---|---|
committer | Olivier Galibert <galibert@pobox.com> | 2018-01-23 10:25:25 +0100 |
commit | 03ba80e0ef3e021f6ff89ef91ae5cdce4e24b994 (patch) | |
tree | f127b7f533d36df2484f82fcb05cef5f4c04f232 /src/emu/device.h | |
parent | f61a64ea29bf46bf2deb2e1fbace5b24f3d7b0aa (diff) |
xtal.h is dead, long live to xtal.cpp [O. Galibert]
Diffstat (limited to 'src/emu/device.h')
-rw-r--r-- | src/emu/device.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/emu/device.h b/src/emu/device.h index 38b20ba3111..d385534cd00 100644 --- a/src/emu/device.h +++ b/src/emu/device.h @@ -494,6 +494,7 @@ public: // configuration helpers void add_machine_configuration(machine_config &config) { device_add_mconfig(config); } static void static_set_clock(device_t &device, u32 clock); + static void static_set_clock(device_t &device, const XTAL &xtal) { static_set_clock(device, xtal.value()); } static void static_set_input_default(device_t &device, const input_device_default *config) { device.m_input_defaults = config; } static void static_set_default_bios_tag(device_t &device, const char *tag) { device.m_default_bios_tag = tag; } @@ -508,6 +509,7 @@ public: u32 clock() const { return m_clock; } u32 unscaled_clock() const { return m_unscaled_clock; } void set_unscaled_clock(u32 clock); + void set_unscaled_clock(const XTAL &xtal) { set_unscaled_clock(xtal.value()); } double clock_scale() const { return m_clock_scale; } void set_clock_scale(double clockscale); attotime clocks_to_attotime(u64 clocks) const; |