summaryrefslogtreecommitdiff
path: root/arm9/lib/include/OS_timer.h
diff options
context:
space:
mode:
authorEgor Ananyin <ananinegor@gmail.com>2020-06-24 20:31:49 +0300
committerEgor Ananyin <ananinegor@gmail.com>2020-06-24 20:31:49 +0300
commit2f08757512dc9a57c66226ccbc56852598917c14 (patch)
tree1bc802dd9aaaa5408765b7810ae5a4ad95c93ab9 /arm9/lib/include/OS_timer.h
parent60d9344c63e43abd81ccca87891b2ccdc05c6f93 (diff)
Shared things
Diffstat (limited to 'arm9/lib/include/OS_timer.h')
-rw-r--r--arm9/lib/include/OS_timer.h28
1 files changed, 1 insertions, 27 deletions
diff --git a/arm9/lib/include/OS_timer.h b/arm9/lib/include/OS_timer.h
index 8b2a97a9..effa5fc0 100644
--- a/arm9/lib/include/OS_timer.h
+++ b/arm9/lib/include/OS_timer.h
@@ -1,32 +1,6 @@
#ifndef POKEDIAMOND_OS_TIMER_H
#define POKEDIAMOND_OS_TIMER_H
-#include "consts.h"
-
-typedef enum
-{
- OS_TIMER_PRESCALER_1 = (0UL << REG_OS_TM0CNT_H_PS_SHIFT),
- OS_TIMER_PRESCALER_64 = (1UL << REG_OS_TM0CNT_H_PS_SHIFT),
- OS_TIMER_PRESCALER_256 = (2UL << REG_OS_TM0CNT_H_PS_SHIFT),
- OS_TIMER_PRESCALER_1024 = (3UL << REG_OS_TM0CNT_H_PS_SHIFT)
-} OSTimerPrescaler;
-
-typedef enum
-{
- OS_TIMER_0 = 0,
- OS_TIMER_1 = 1,
- OS_TIMER_2 = 2,
- OS_TIMER_3 = 3
-} OSTimer;
-
-static inline void OS_SetTimerCount(OSTimer id, u16 count)
-{
- *((REGType16 *)((u32)&reg_OS_TM0CNT_L + id * 4)) = count;
-}
-
-static inline void OS_SetTimerControl(OSTimer id, u16 control)
-{
- *((REGType16 *)((u32)&reg_OS_TM0CNT_H + id * 4)) = control;
-}
+#include "nitro/OS_timer_shared.h"
#endif //POKEDIAMOND_OS_TIMER_H