XINU
system
getticks.c
Go to the documentation of this file.
1
5
#include <
xinu.h
>
6
14
uint32
getticks
()
15
{
16
uint32
ret;
17
asm
volatile
(
"MRC p15, 0, %0, c9, c13, 0\t\n"
18
:
"=r"
(ret));
19
return
ret;
20
}
xinu.h
全てのシステムヘッダファイルをインクルードする。
uint32
unsigned int uint32
符号なし32ビット整数(unsigned int)
Definition:
kernel.h:15
getticks
uint32 getticks()
CPUリセット以降のclock tick数を取得する。
Definition:
getticks.c:14
Generated by
1.8.13