summaryrefslogtreecommitdiff
path: root/include/gba/flash_internal.h
diff options
context:
space:
mode:
authorProjectRevoTPP <projectrevotpp@hotmail.com>2017-03-18 04:00:15 +0100
committerProjectRevoTPP <projectrevotpp@hotmail.com>2017-03-18 04:00:15 +0100
commit6035511c139549a0291b6b3d43b9b080f792b2b6 (patch)
tree128cb1580f3c1ac1a6f897ea2e8e703265e88914 /include/gba/flash_internal.h
parentd4703599837531d1118b64822c85755f28747ee1 (diff)
reorganize and add new headers for many files
Diffstat (limited to 'include/gba/flash_internal.h')
-rw-r--r--include/gba/flash_internal.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/include/gba/flash_internal.h b/include/gba/flash_internal.h
index 6156b6c14..cbcfb5466 100644
--- a/include/gba/flash_internal.h
+++ b/include/gba/flash_internal.h
@@ -65,6 +65,10 @@ u16 ReadFlashId(void);
void StartFlashTimer(u8 phase);
void SetReadFlash1(u16 *dest);
void StopFlashTimer(void);
+u16 SetFlashTimerIntr(u8 timerNum, void (**intrFunc)(void));
+u32 ProgramFlashSectorAndVerify(u16 sectorNum, u8 *src);
+void ReadFlash(u16 sectorNum, u32 offset, u8 *dest, u32 size);
+u32 ProgramFlashSectorAndVerifyNBytes(u16 sectorNum, u8 *src, u32 n);
u16 WaitForFlashWrite_Common(u8 phase, u8 *addr, u8 lastData);
@@ -73,4 +77,7 @@ u16 EraseFlashSector_MX(u16 sectorNum);
u16 ProgramFlashByte_MX(u16 sectorNum, u32 offset, u8 data);
u16 ProgramFlashSector_MX(u16 sectorNum, u8 *src);
+// agb_flash_1m
+u16 IdentifyFlash(void);
+
#endif // GUARD_GBA_FLASH_INTERNAL_H