summaryrefslogtreecommitdiff
path: root/arm9/lib/include/CTRDG_flash.h
blob: 9a4aff414dc2da876bf9aeef257f020a30ec7e3b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
#ifndef POKEDIAMOND_CTRDG_FLASH_H
#define POKEDIAMOND_CTRDG_FLASH_H

#include "nitro/types.h"
#include "MI_exMemory.h"

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