summaryrefslogtreecommitdiff
path: root/arm9
diff options
context:
space:
mode:
authorSeth Barberee <seth.barberee@gmail.com>2021-05-15 20:30:26 -0500
committerSeth Barberee <seth.barberee@gmail.com>2021-05-15 20:30:26 -0500
commit5f4bb52fd5d93b2638c99baee82d63b4d9b9f790 (patch)
tree5245ec30ef97ba2a166c2008fcf16661a8e900cd /arm9
parent5d6018d667c8897e660ab1752b25884befdce5af (diff)
address review comments
Diffstat (limited to 'arm9')
-rw-r--r--arm9/lib/include/RTC_internal.h3
-rw-r--r--arm9/lib/src/RTC_internal.c14
-rw-r--r--arm9/src/WIFI_stubsmd5_dummy.c2
-rw-r--r--arm9/src/unk_02022504.c2
4 files changed, 12 insertions, 9 deletions
diff --git a/arm9/lib/include/RTC_internal.h b/arm9/lib/include/RTC_internal.h
index 77934291..440d8b95 100644
--- a/arm9/lib/include/RTC_internal.h
+++ b/arm9/lib/include/RTC_internal.h
@@ -1,7 +1,8 @@
#ifndef NITRO_RTC_INTERNAL_H_
#define NITRO_RTC_INTERNAL_H_
-BOOL RtcSendPxiCommand(u8 command);
+#include "nitro/types.h"
+
BOOL RTCi_WriteRawStatus2Async(void);
BOOL RTCi_ReadRawTimeAsync(void);
BOOL RTCi_ReadRawDateAsync(void);
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;
diff --git a/arm9/src/WIFI_stubsmd5_dummy.c b/arm9/src/WIFI_stubsmd5_dummy.c
index a6447af9..6de2edca 100644
--- a/arm9/src/WIFI_stubsmd5_dummy.c
+++ b/arm9/src/WIFI_stubsmd5_dummy.c
@@ -1,4 +1,4 @@
-#include "global.h"
+#include "function_target.h"
#include "WIFI_stubsmd5_dummy.h"
ARM_FUNC void MD5Final(u8 *digest, struct DGTHash1Context *context)
diff --git a/arm9/src/unk_02022504.c b/arm9/src/unk_02022504.c
index 405ea15b..0267a87c 100644
--- a/arm9/src/unk_02022504.c
+++ b/arm9/src/unk_02022504.c
@@ -26,7 +26,7 @@ THUMB_FUNC u8 *LoadHallOfFame(struct SaveBlock2 *sav2, u32 heap_id, int *ret_p)
return ReadSaveFileFromFlash(sav2, heap_id, 0, ret_p);
}
-THUMB_FUNC int *SaveHallOfFame(struct SaveBlock2 *sav2, u8 *data)
+THUMB_FUNC s32 *SaveHallOfFame(struct SaveBlock2 *sav2, u8 *data)
{
return WriteSaveFileToFlash(sav2, 0, data);
}