diff options
| author | 2021-09-11 21:40:00 -0700 | |
|---|---|---|
| committer | 2021-09-11 21:40:00 -0700 | |
| commit | a1dde21708f6764211f7d6f0a41caef7682b2693 (patch) | |
| tree | 64b87b5c1bd5190728062e7f63521eaf2ad92da9 /src/devices/cpu/lc8670/lc8670.cpp | |
| parent | e94edaf482f4fb5644703599108ee7ce3b5ebbd1 (diff) | |
Add adjust_periodic() to persistent_timer. Update obvious situations where it can be used. Convert a few drivers from timer devices to plain timers to avoid adding adjust_persistent() to the timer device as well.
Diffstat (limited to 'src/devices/cpu/lc8670/lc8670.cpp')
| -rw-r--r-- | src/devices/cpu/lc8670/lc8670.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/devices/cpu/lc8670/lc8670.cpp b/src/devices/cpu/lc8670/lc8670.cpp index 6a3723239e6..3b646a65fc6 100644 --- a/src/devices/cpu/lc8670/lc8670.cpp +++ b/src/devices/cpu/lc8670/lc8670.cpp @@ -208,7 +208,7 @@ void lc8670_cpu_device::device_start() // setup timers m_basetimer = timer_alloc(BASE_TIMER); - m_basetimer->adjust(attotime::from_hz(m_clocks[unsigned(clock_source::SUB)]), 0, attotime::from_hz(m_clocks[unsigned(clock_source::SUB)])); + m_basetimer->adjust_periodic(attotime::from_hz(m_clocks[unsigned(clock_source::SUB)])); m_clocktimer = timer_alloc(CLOCK_TIMER); // register state for debugger @@ -1185,7 +1185,7 @@ inline void lc8670_cpu_device::change_clock_source() set_unscaled_clock(new_clock); set_clock_scale(1.0 / (REG_OCR & 0x80 ? 6.0 : 12.0)); - m_clocktimer->adjust(attotime::from_hz(clock()), 0, attotime::from_hz(clock())); + m_clocktimer->adjust_periodic(attotime::from_hz(clock())); m_clock_changed = false; } |
