summaryrefslogtreecommitdiff
path: root/arm9/lib/src/MI_dma_hblank.c
diff options
context:
space:
mode:
authorRevo <projectrevotpp@hotmail.com>2021-07-22 20:46:10 -0400
committerGitHub <noreply@github.com>2021-07-22 20:46:10 -0400
commitb5b9e57dcb55ee1a69ca86c30e90475bb80e3c28 (patch)
tree2e91e60bdb7a9174b16d8ca1b532809d4ae2e5b6 /arm9/lib/src/MI_dma_hblank.c
parentc2d91a2d997afd01fa4f40e1e16d5ee85557c9a8 (diff)
parent5bf13c7f48fe91c7902ce50250bc1a5a2398a2ae (diff)
Merge pull request #435 from red031000/master
separate out libs to libc, libnns and NitroSDK
Diffstat (limited to 'arm9/lib/src/MI_dma_hblank.c')
-rw-r--r--arm9/lib/src/MI_dma_hblank.c31
1 files changed, 0 insertions, 31 deletions
diff --git a/arm9/lib/src/MI_dma_hblank.c b/arm9/lib/src/MI_dma_hblank.c
deleted file mode 100644
index 67e579fe..00000000
--- a/arm9/lib/src/MI_dma_hblank.c
+++ /dev/null
@@ -1,31 +0,0 @@
-#include "MI_dma_hblank.h"
-#include "MI_dma.h"
-#include "function_target.h"
-
-ARM_FUNC void MI_HBlankDmaCopy32(u32 dmaNo, const void *src, void *dest, u32 size)
-{
- MIi_CheckAnotherAutoDMA(dmaNo, MI_DMA_TIMING_H_BLANK);
- MIi_CheckDma0SourceAddress(dmaNo, (u32)src, size, MI_DMA_SRC_INC);
-
- if (size == 0)
- {
- return;
- }
-
- MI_WaitDma(dmaNo);
- MIi_DmaSetParams(dmaNo, (u32)src, (u32)dest, (u32)(0x96600000 | (size / 4)));
-}
-
-ARM_FUNC void MI_HBlankDmaCopy16(u32 dmaNo, const void *src, void *dest, u32 size)
-{
- MIi_CheckAnotherAutoDMA(dmaNo, MI_DMA_TIMING_H_BLANK);
- MIi_CheckDma0SourceAddress(dmaNo, (u32)src, size, MI_DMA_SRC_INC);
-
- if (size == 0)
- {
- return;
- }
-
- MI_WaitDma(dmaNo);
- MIi_DmaSetParams(dmaNo, (u32)src, (u32)dest, (u32)(0x92600000 | (size / 2)));
-}