summaryrefslogtreecommitdiff
path: root/include/timer3.h
diff options
context:
space:
mode:
authorAkira Akashi <rubenru09@aol.com>2021-03-21 15:51:40 +0000
committerGitHub <noreply@github.com>2021-03-21 15:51:40 +0000
commit00ecc6db377847f7199cb3f1c443497ef3581bfe (patch)
tree75ae1e8cab6d0506b7d2a071c4323c3f930af20c /include/timer3.h
parente5f25acf1b0a1e8d5f6972cda99b89697cddd872 (diff)
parent845bf4ebf7bf6dde889ce393f2f8e10698a58a49 (diff)
Merge pull request #339 from remicalixte/unk_02020AFC
Decompile unk_02020AFC.s to timer3.c
Diffstat (limited to 'include/timer3.h')
-rw-r--r--include/timer3.h21
1 files changed, 21 insertions, 0 deletions
diff --git a/include/timer3.h b/include/timer3.h
new file mode 100644
index 00000000..be6e1da8
--- /dev/null
+++ b/include/timer3.h
@@ -0,0 +1,21 @@
+#ifndef POKEDIAMOND_TIMER3_H
+#define POKEDIAMOND_TIMER3_H
+
+
+#include "global.h"
+
+struct Timer3Data
+{
+ BOOL NeedReset;
+ vu64 Timer3Counter;
+};
+
+THUMB_FUNC void Init_Timer3();
+THUMB_FUNC void CountUpTimer3();
+THUMB_FUNC u64 internal_GetTimer3Count();
+THUMB_FUNC u64 GetTimer3Count();
+THUMB_FUNC u64 Timer3CountToMilliSeconds(u64 count);
+THUMB_FUNC u64 Timer3CountToSeconds(u64 count);
+
+
+#endif //POKEDIAMOND_TIMER3_H