4 #include <exec/types.h>
5 #include <hardware/pit.h>
7 #include "timer_intern.h"
9 static inline void Timer0Start(UWORD delay
, struct TimerBase
*TimerBase
)
11 outb(CH0
|ACCESS_FULL
|MODE_SW_STROBE
, PIT_CONTROL
); /* Software strobe mode, 16-bit access */
12 ch_write(delay
, PIT_CH0
);
14 TimerBase
->tb_prev_tick
= delay
; /* Remember initial ticks count for incrementing EClock value in EClockUpdate() */
17 void Timer0Setup(struct TimerBase
*TimerBase
);