From 5f4bb52fd5d93b2638c99baee82d63b4d9b9f790 Mon Sep 17 00:00:00 2001 From: Seth Barberee Date: Sat, 15 May 2021 20:30:26 -0500 Subject: address review comments --- arm9/lib/src/RTC_internal.c | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) (limited to 'arm9/lib/src') diff --git a/arm9/lib/src/RTC_internal.c b/arm9/lib/src/RTC_internal.c index fcd4da69..c7a5f2aa 100644 --- a/arm9/lib/src/RTC_internal.c +++ b/arm9/lib/src/RTC_internal.c @@ -1,28 +1,30 @@ -#include "global.h" +#include "function_target.h" #include "PXI_fifo.h" #include "RTC_internal.h" -BOOL RTCi_ReadRawDateTimeAsync(void) +static BOOL RtcSendPxiCommand(u8 command); + +ARM_FUNC BOOL RTCi_ReadRawDateTimeAsync(void) { return RtcSendPxiCommand(16); } -BOOL RTCi_ReadRawDateAsync(void) +ARM_FUNC BOOL RTCi_ReadRawDateAsync(void) { return RtcSendPxiCommand(17); } -BOOL RTCi_ReadRawTimeAsync(void) +ARM_FUNC BOOL RTCi_ReadRawTimeAsync(void) { return RtcSendPxiCommand(18); } -BOOL RTCi_WriteRawStatus2Async(void) +ARM_FUNC BOOL RTCi_WriteRawStatus2Async(void) { return RtcSendPxiCommand(39); } -BOOL RtcSendPxiCommand(u8 command) +ARM_FUNC static BOOL RtcSendPxiCommand(u8 command) { s32 data = command << 8 & 0x7f00; return PXI_SendWordByFifo(PXI_FIFO_TAG_RTC, data, FALSE) >= 0; -- cgit v1.2.3