summaryrefslogtreecommitdiff
path: root/arm9/lib/include/CTRDG_flash.h
diff options
context:
space:
mode:
authorwho-knows-who <j.williams97@outlook.com>2021-02-27 15:29:36 +0000
committerwho-knows-who <j.williams97@outlook.com>2021-02-27 15:29:36 +0000
commitaa968bb2de4d703376af43a0ef32a53ca46f489b (patch)
tree699d89dda03b1b81b4a0a87b8694073a71157d1a /arm9/lib/include/CTRDG_flash.h
parente13202e2f19c9f1673a021dbcc062d96b9f0f06c (diff)
parent75dc81c75dc1dc86053303cdae9decdb2f05557d (diff)
Merge branch 'master' of github.com:pret/pokediamond
Diffstat (limited to 'arm9/lib/include/CTRDG_flash.h')
-rw-r--r--arm9/lib/include/CTRDG_flash.h27
1 files changed, 27 insertions, 0 deletions
diff --git a/arm9/lib/include/CTRDG_flash.h b/arm9/lib/include/CTRDG_flash.h
new file mode 100644
index 00000000..aa02d951
--- /dev/null
+++ b/arm9/lib/include/CTRDG_flash.h
@@ -0,0 +1,27 @@
+#ifndef POKEDIAMOND_CTRDG_FLASH_H
+#define POKEDIAMOND_CTRDG_FLASH_H
+
+#include "nitro/types.h"
+#include "MI_exMemory.h"
+
+#define CTRDG_AGB_FLASH_ADR 0x0A000000
+
+typedef struct CTRDGiFlashSectorTag
+{
+ u32 size;
+ u16 shift;
+ u16 count;
+ u16 top;
+ u8 reserved[2];
+} CTRDGiFlashSector;
+
+typedef struct CTRDGFlashTypeTag
+{
+ u32 romSize;
+ CTRDGiFlashSector sector;
+ MICartridgeRamCycle agbWait[2];
+ u16 makerID;
+ u16 deviceID;
+} CTRDGFlashType;
+
+#endif //POKEDIAMOND_CTRDG_FLASH_H