diff options
Diffstat (limited to 'arm9/lib')
-rw-r--r-- | arm9/lib/include/RTC_internal.h | 3 | ||||
-rw-r--r-- | arm9/lib/src/RTC_internal.c | 14 |
2 files changed, 10 insertions, 7 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; |