From 5bf13c7f48fe91c7902ce50250bc1a5a2398a2ae Mon Sep 17 00:00:00 2001 From: red031000 Date: Fri, 23 Jul 2021 01:11:15 +0100 Subject: separate out libs to libc, libnns and NitroSDK --- arm9/lib/src/RTC_internal.c | 31 ------------------------------- 1 file changed, 31 deletions(-) delete mode 100644 arm9/lib/src/RTC_internal.c (limited to 'arm9/lib/src/RTC_internal.c') diff --git a/arm9/lib/src/RTC_internal.c b/arm9/lib/src/RTC_internal.c deleted file mode 100644 index e3a132ab..00000000 --- a/arm9/lib/src/RTC_internal.c +++ /dev/null @@ -1,31 +0,0 @@ -#include "function_target.h" -#include "PXI_fifo.h" -#include "RTC_internal.h" - -static BOOL RtcSendPxiCommand(u8 command); - -ARM_FUNC BOOL RTCi_ReadRawDateTimeAsync(void) -{ - return RtcSendPxiCommand(16); -} - -ARM_FUNC BOOL RTCi_ReadRawDateAsync(void) -{ - return RtcSendPxiCommand(17); -} - -ARM_FUNC BOOL RTCi_ReadRawTimeAsync(void) -{ - return RtcSendPxiCommand(18); -} - -ARM_FUNC BOOL RTCi_WriteRawStatus2Async(void) -{ - return RtcSendPxiCommand(39); -} - -ARM_FUNC static BOOL RtcSendPxiCommand(u8 command) -{ - s32 data = command << 8 & 0x7f00; - return PXI_SendWordByFifo(PXI_FIFO_TAG_RTC, (u32)data, FALSE) >= 0; -} -- cgit v1.2.3