diff options
author | who-knows-who <j.williams97@outlook.com> | 2021-02-27 15:29:36 +0000 |
---|---|---|
committer | who-knows-who <j.williams97@outlook.com> | 2021-02-27 15:29:36 +0000 |
commit | aa968bb2de4d703376af43a0ef32a53ca46f489b (patch) | |
tree | 699d89dda03b1b81b4a0a87b8694073a71157d1a /arm9/lib/include/CTRDG_flash.h | |
parent | e13202e2f19c9f1673a021dbcc062d96b9f0f06c (diff) | |
parent | 75dc81c75dc1dc86053303cdae9decdb2f05557d (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.h | 27 |
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 |