summaryrefslogtreecommitdiff
path: root/libs
diff options
context:
space:
mode:
authorAetias <144526980+AetiasHax@users.noreply.github.com>2025-07-19 18:51:07 +0200
committerGitHub <noreply@github.com>2025-07-19 18:51:07 +0200
commit32cc123547fef2ff4aa170ef27ee0a825957a859 (patch)
tree291fbb077310d0b515f022cdd46c166e08e4d456 /libs
parent573b696ff8d3e83765d4483e5a31e0ec5676044d (diff)
Game 73% (#122)
* Game 73% * Fix build
Diffstat (limited to 'libs')
-rw-r--r--libs/nds/include/nds/gfx.h19
-rw-r--r--libs/nds/include/nds/irq.h18
2 files changed, 37 insertions, 0 deletions
diff --git a/libs/nds/include/nds/gfx.h b/libs/nds/include/nds/gfx.h
new file mode 100644
index 00000000..3992a4e1
--- /dev/null
+++ b/libs/nds/include/nds/gfx.h
@@ -0,0 +1,19 @@
+#ifndef _NDS_GFX_H
+#define _NDS_GFX_H
+
+#include "global.h"
+#include "types.h"
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+#define GFX_FIFO_SWAP_BUFFERS (*(volatile u32 *) 0x04000540)
+#define GFX_FIFO_VIEWPORT (*(volatile u32 *) 0x04000580)
+#define REG_VCOUNT (*(volatile u16 *) 0x04000006)
+
+#ifdef __cplusplus
+}
+#endif
+
+#endif
diff --git a/libs/nds/include/nds/irq.h b/libs/nds/include/nds/irq.h
new file mode 100644
index 00000000..2c1863df
--- /dev/null
+++ b/libs/nds/include/nds/irq.h
@@ -0,0 +1,18 @@
+#ifndef _NDS_IRQ_H
+#define _NDS_IRQ_H
+
+#include "global.h"
+#include "types.h"
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+u32 OS_DisableInterrupts_Irq();
+void OS_RestoreInterrupts(u32);
+
+#ifdef __cplusplus
+}
+#endif
+
+#endif