summaryrefslogtreecommitdiff
path: root/include/gba/flash_internal.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/gba/flash_internal.h')
-rw-r--r--include/gba/flash_internal.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/include/gba/flash_internal.h b/include/gba/flash_internal.h
index ca357d196..6156b6c14 100644
--- a/include/gba/flash_internal.h
+++ b/include/gba/flash_internal.h
@@ -56,10 +56,21 @@ extern const struct FlashType *gFlash;
extern u8 (*PollFlashStatus)(u8 *);
extern u8 gFlashTimeoutFlag;
+extern const struct FlashSetupInfo MX29L010;
+extern const struct FlashSetupInfo LE26FV10N1TS;
+extern const struct FlashSetupInfo DefaultFlash;
+
void SwitchFlashBank(u8 bankNum);
u16 ReadFlashId(void);
void StartFlashTimer(u8 phase);
void SetReadFlash1(u16 *dest);
void StopFlashTimer(void);
+u16 WaitForFlashWrite_Common(u8 phase, u8 *addr, u8 lastData);
+
+u16 EraseFlashChip_MX(void);
+u16 EraseFlashSector_MX(u16 sectorNum);
+u16 ProgramFlashByte_MX(u16 sectorNum, u32 offset, u8 data);
+u16 ProgramFlashSector_MX(u16 sectorNum, u8 *src);
+
#endif // GUARD_GBA_FLASH_INTERNAL_H