diff options
author | GriffinR <griffin.g.richards@gmail.com> | 2021-11-10 17:01:21 -0500 |
---|---|---|
committer | GriffinR <griffin.g.richards@gmail.com> | 2021-11-10 17:01:21 -0500 |
commit | 45908873591abb9fcb87a68721690c9a35559139 (patch) | |
tree | 5dcae9c4dd1b0aa2163855615382b7c37b997268 /src/librfu_intr.c | |
parent | 343ac990496dd4adb551bb15001f5fb1845666cb (diff) |
Clean up some register constant use
Diffstat (limited to 'src/librfu_intr.c')
-rw-r--r-- | src/librfu_intr.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/librfu_intr.c b/src/librfu_intr.c index 19ea60b06..d902b1c45 100644 --- a/src/librfu_intr.c +++ b/src/librfu_intr.c @@ -336,8 +336,8 @@ static u16 handshake_wait(u16 slot) static void STWI_set_timer_in_RAM(u8 count) { - vu16* regTMCNTL = (vu16*)(REG_ADDR_TMCNT_L + gSTWIStatus->timerSelect * 4); - vu16* regTMCNTH = (vu16*)(REG_ADDR_TMCNT_H + gSTWIStatus->timerSelect * 4); + vu16* regTMCNTL = ®_TMCNT_L(gSTWIStatus->timerSelect); + vu16* regTMCNTH = ®_TMCNT_H(gSTWIStatus->timerSelect); REG_IME = 0; switch (count) { |