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/scc68070.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/scc68070.cpp')
| -rw-r--r-- | src/devices/machine/scc68070.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/devices/machine/scc68070.cpp b/src/devices/machine/scc68070.cpp index c5308d8e597..013f148a0aa 100644 --- a/src/devices/machine/scc68070.cpp +++ b/src/devices/machine/scc68070.cpp @@ -775,8 +775,8 @@ void scc68070_device::ucsr_w(uint8_t data) attotime rx_rate = attotime::from_ticks(s_baud_divisors[(data >> 4) & 7] * 10, 49152000); attotime tx_rate = attotime::from_ticks(s_baud_divisors[data & 7] * 10, 49152000); - m_uart.rx_timer->adjust(rx_rate, 0, rx_rate); - m_uart.tx_timer->adjust(tx_rate, 0, tx_rate); + m_uart.rx_timer->adjust_periodic(rx_rate); + m_uart.tx_timer->adjust_periodic(tx_rate); } uint8_t scc68070_device::ucr_r() |
