2 Copyright © 1995-2013, The AROS Development Team. All rights reserved.
5 Desc: ReadEClock() - read the base frequency of timers.
9 #include <devices/timer.h>
10 #include <proto/timer.h>
11 #include <proto/exec.h>
13 #include <asm/mpc5200b.h>
17 /* See rom/timer/readeclock.c for documentation */
19 AROS_LH1(ULONG
, ReadEClock
,
20 AROS_LHA(struct EClockVal
*, dest
, A0
),
21 struct TimerBase
*, TimerBase
, 10, Timer
)
27 EClockUpdate(TimerBase
);
29 dest
->ev_hi
= TimerBase
->tb_ticks_total
>> 32;
30 dest
->ev_lo
= TimerBase
->tb_ticks_total
& 0xffffffff;