mirror of
https://github.com/Ninjdai1/pokeemerald.git
synced 2024-11-16 19:47:35 +01:00
32 lines
868 B
C
32 lines
868 B
C
#include "gba/gba.h"
|
|
#include "gba/flash_internal.h"
|
|
|
|
const u16 leMaxTime[] =
|
|
{
|
|
10, 65469, TIMER_ENABLE | TIMER_INTR_ENABLE | TIMER_256CLK,
|
|
10, 65469, TIMER_ENABLE | TIMER_INTR_ENABLE | TIMER_256CLK,
|
|
2000, 65469, TIMER_ENABLE | TIMER_INTR_ENABLE | TIMER_256CLK,
|
|
2000, 65469, TIMER_ENABLE | TIMER_INTR_ENABLE | TIMER_256CLK,
|
|
};
|
|
|
|
const struct FlashSetupInfo LE26FV10N1TS =
|
|
{
|
|
ProgramFlashByte_MX,
|
|
ProgramFlashSector_MX,
|
|
EraseFlashChip_MX,
|
|
EraseFlashSector_MX,
|
|
WaitForFlashWrite_Common,
|
|
leMaxTime,
|
|
{
|
|
131072, // ROM size
|
|
{
|
|
4096, // sector size
|
|
12, // bit shift to multiply by sector size (4096 == 1 << 12)
|
|
32, // number of sectors
|
|
0 // appears to be unused
|
|
},
|
|
{ 3, 1 }, // wait state setup data
|
|
{ { 0x62, 0x13 } } // ID
|
|
}
|
|
};
|