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/machine/bq48x2.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/machine/bq48x2.cpp')
| -rw-r--r-- | src/devices/machine/bq48x2.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/devices/machine/bq48x2.cpp b/src/devices/machine/bq48x2.cpp index 59a937e6763..fa38098bc38 100644 --- a/src/devices/machine/bq48x2.cpp +++ b/src/devices/machine/bq48x2.cpp @@ -343,7 +343,7 @@ void bq48x2_device::write(offs_t address, uint8_t data) case reg_days: if (data & FLAG_FTE) // Test mode - m_periodic_timer->adjust(attotime::from_hz(1024), 0, attotime::from_hz(1024)); + m_periodic_timer->adjust_periodic(attotime::from_hz(1024)); else { // reset to periodic timing @@ -401,14 +401,14 @@ void bq48x2_device::set_periodic_timer() m_periodic_timer->reset(); break; case 1: - m_periodic_timer->adjust(attotime::from_msec(10), 0, attotime::from_msec(10)); + m_periodic_timer->adjust_periodic(attotime::from_msec(10)); break; case 2: - m_periodic_timer->adjust(attotime::from_msec(100), 0, attotime::from_msec(100)); + m_periodic_timer->adjust_periodic(attotime::from_msec(100)); break; default: rate = 1 << (16-rateval); - m_periodic_timer->adjust(attotime::from_hz(rate), 0, attotime::from_hz(rate)); + m_periodic_timer->adjust_periodic(attotime::from_hz(rate)); break; } } |
