diff options
Diffstat (limited to 'arm9/lib/src/RTC_internal.c')
-rw-r--r-- | arm9/lib/src/RTC_internal.c | 14 |
1 files changed, 8 insertions, 6 deletions
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; |