diff options
author | Rémi Calixte <remicalixte.rmc@gmail.com> | 2021-03-21 09:17:05 +0100 |
---|---|---|
committer | Rémi Calixte <remicalixte.rmc@gmail.com> | 2021-03-21 09:17:05 +0100 |
commit | 8bfbd3f4983d0843b352b403f08c2894d1001ba1 (patch) | |
tree | 539942ed8d839d89cdcef593458674bdcea1109b | |
parent | bef877266c6af17c90581f56f5d4217fd4ecce23 (diff) |
use HW_INTR_CHECK_BUF macro
-rw-r--r-- | arm9/src/timer3.c | 5 |
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); } |