diff options
author | 2008-02-06 15:33:04 +0000 | |
---|---|---|
committer | 2008-02-06 15:33:04 +0000 | |
commit | abdb58671bca0ec733bff6d670efdf8567863734 (patch) | |
tree | 712c867aeb8179f0a02b4f2e09cb7c4dc1f6905c /src/emu/machine/pc16552d.c | |
parent | e18344a0e78149e3a9046e5b0ffc14da3de93b2c (diff) |
Split timer_adjust() into timer_adjust_oneshot() and timer_adjust_periodic().
Updated all call sites.
Fixed recent build breaks.
Diffstat (limited to 'src/emu/machine/pc16552d.c')
-rw-r--r-- | src/emu/machine/pc16552d.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/emu/machine/pc16552d.c b/src/emu/machine/pc16552d.c index ef3fb180c10..91b065bbdc9 100644 --- a/src/emu/machine/pc16552d.c +++ b/src/emu/machine/pc16552d.c @@ -152,7 +152,7 @@ static TIMER_CALLBACK( tx_fifo_timer_callback ) ch->pending_interrupt |= IRQ_TX_HOLDING_REG_EMPTY; check_interrupts(chip, channel); - timer_adjust(duart[chip].ch[channel].tx_fifo_timer, attotime_never, (chip * 2) + channel, attotime_never); + timer_adjust_oneshot(duart[chip].ch[channel].tx_fifo_timer, attotime_never, (chip * 2) + channel); } static void duart_push_tx_fifo(int chip, int channel, UINT8 data) @@ -164,7 +164,7 @@ static void duart_push_tx_fifo(int chip, int channel, UINT8 data) period = attotime_mul(ATTOTIME_IN_HZ(duart[chip].frequency), ch->divisor * 16 * 16 * 8); - timer_adjust(duart[chip].ch[channel].tx_fifo_timer, period, (chip * 2) + channel, attotime_zero); + timer_adjust_oneshot(duart[chip].ch[channel].tx_fifo_timer, period, (chip * 2) + channel); } #ifdef UNUSED_FUNCTION @@ -395,10 +395,10 @@ void pc16552d_init(int chip, int frequency, void (* irq_handler)(int channel, in // allocate transmit timers duart[chip].ch[0].tx_fifo_timer = timer_alloc(tx_fifo_timer_callback, NULL); - timer_adjust(duart[chip].ch[0].tx_fifo_timer, attotime_never, (chip * 2) + 0, attotime_never); + timer_adjust_oneshot(duart[chip].ch[0].tx_fifo_timer, attotime_never, (chip * 2) + 0); duart[chip].ch[1].tx_fifo_timer = timer_alloc(tx_fifo_timer_callback, NULL); - timer_adjust(duart[chip].ch[1].tx_fifo_timer, attotime_never, (chip * 2) + 1, attotime_never); + timer_adjust_oneshot(duart[chip].ch[1].tx_fifo_timer, attotime_never, (chip * 2) + 1); } void pc16552d_rx_data(int chip, int channel, UINT8 data) |