summaryrefslogtreecommitdiff
path: root/include/gba/io_reg.h
diff options
context:
space:
mode:
authorYamaArashi <shadow962@live.com>2016-04-30 04:19:00 -0700
committerYamaArashi <shadow962@live.com>2016-04-30 04:19:00 -0700
commit1e6eb4f81296eca9c2f1f373c19716939f9b6be6 (patch)
treeffd770e2b6447120c513cf75ef059d588beff112 /include/gba/io_reg.h
parent000e34c6f29655aa20034e390e4e2a6c1f7a1258 (diff)
use compiled libgcc
Diffstat (limited to 'include/gba/io_reg.h')
-rw-r--r--include/gba/io_reg.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/include/gba/io_reg.h b/include/gba/io_reg.h
index e8b3bde47..b156ea801 100644
--- a/include/gba/io_reg.h
+++ b/include/gba/io_reg.h
@@ -402,6 +402,14 @@
#define DMA_INTR_ENABLE 0x4000
#define DMA_ENABLE 0x8000
+// timer
+#define TIMER_1CLK 0x00
+#define TIMER_64CLK 0x01
+#define TIMER_256CLK 0x02
+#define TIMER_1024CLK 0x03
+#define TIMER_INTR_ENABLE 0x40
+#define TIMER_ENABLE 0x80
+
// interrupt flags
#define INTR_FLAG_VBLANK (1 << 0)
#define INTR_FLAG_HBLANK (1 << 1)