move arm processor resource to generic location
[AROS.git] / arch / all-pc / timer / ticks.h
blob3050961d8608d650a04184dbc5843f155c27144e
1 #ifndef _TICKS_H
2 #define _TICKS_H
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);
19 #endif