From 8bfbd3f4983d0843b352b403f08c2894d1001ba1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=A9mi=20Calixte?= Date: Sun, 21 Mar 2021 09:17:05 +0100 Subject: use HW_INTR_CHECK_BUF macro --- arm9/src/timer3.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'arm9/src/timer3.c') 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); } -- cgit v1.2.3