summaryrefslogtreecommitdiff
path: root/arm9/src
diff options
context:
space:
mode:
authorRémi Calixte <remicalixte.rmc@gmail.com>2021-03-21 09:17:05 +0100
committerRémi Calixte <remicalixte.rmc@gmail.com>2021-03-21 09:17:05 +0100
commit8bfbd3f4983d0843b352b403f08c2894d1001ba1 (patch)
tree539942ed8d839d89cdcef593458674bdcea1109b /arm9/src
parentbef877266c6af17c90581f56f5d4217fd4ecce23 (diff)
use HW_INTR_CHECK_BUF macro
Diffstat (limited to 'arm9/src')
-rw-r--r--arm9/src/timer3.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/arm9/src/timer3.c b/arm9/src/timer3.c
index 7bf66398..75689326 100644
--- a/arm9/src/timer3.c
+++ b/arm9/src/timer3.c
@@ -28,9 +28,8 @@ THUMB_FUNC void CountUpTimer3()
reg_OS_TM3CNT_H = 0xc1;
timer3_data.NeedReset = FALSE;
}
- u32 *ptr = (u32 *)0x027e0000;
- u32 offset = 0xffe;
- ptr[offset] |= 0x40;
+
+ *(vu32 *)HW_INTR_CHECK_BUF |= 0x40;
OS_SetIrqFunction(0x40, &CountUpTimer3);
}