diff options
author | 2017-04-21 14:18:58 -0400 | |
---|---|---|
committer | 2017-04-21 14:52:36 -0400 | |
commit | 9f121349908400b7412e353712147b45ee64dd67 (patch) | |
tree | 30c9a1f4b20e58a491a112aa1332dfb467ee65ce /src/emu/device.ipp | |
parent | 735ab4f3551840a5c642c2ae719fdd578e9fc154 (diff) |
Mechanism for devices to generate clocks for other devices
- Have set_unscaled_clock and set_clock_scale not call notify_clock_changed unless the device has been started.
- Owner-derived clocks are now updated whenever the owner's clock is changed, including at configuration time. This simplifies the configuration of various NES clones.
- Add clock_update_delegate type to represent device-generated clock outputs that may be dynamically modified. The model implementation of this is the CLK output in I8085A.
Diffstat (limited to 'src/emu/device.ipp')
-rw-r--r-- | src/emu/device.ipp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/emu/device.ipp b/src/emu/device.ipp index 74d7eb45f2c..c5c97568313 100644 --- a/src/emu/device.ipp +++ b/src/emu/device.ipp @@ -18,6 +18,12 @@ #define __DEVICE_IPP__ //************************************************************************** +// TYPE DEFINITIONS +//************************************************************************** + +typedef device_delegate<void (u32)> clock_update_delegate; + +//************************************************************************** // MEMBER TEMPLATES //************************************************************************** |