summaryrefslogtreecommitdiff
path: root/arm9/lib/include/CTRDG_backup.h
diff options
context:
space:
mode:
authorRevo <projectrevotpp@hotmail.com>2021-07-22 20:46:10 -0400
committerGitHub <noreply@github.com>2021-07-22 20:46:10 -0400
commitb5b9e57dcb55ee1a69ca86c30e90475bb80e3c28 (patch)
tree2e91e60bdb7a9174b16d8ca1b532809d4ae2e5b6 /arm9/lib/include/CTRDG_backup.h
parentc2d91a2d997afd01fa4f40e1e16d5ee85557c9a8 (diff)
parent5bf13c7f48fe91c7902ce50250bc1a5a2398a2ae (diff)
Merge pull request #435 from red031000/master
separate out libs to libc, libnns and NitroSDK
Diffstat (limited to 'arm9/lib/include/CTRDG_backup.h')
-rw-r--r--arm9/lib/include/CTRDG_backup.h50
1 files changed, 0 insertions, 50 deletions
diff --git a/arm9/lib/include/CTRDG_backup.h b/arm9/lib/include/CTRDG_backup.h
deleted file mode 100644
index 8b95a7aa..00000000
--- a/arm9/lib/include/CTRDG_backup.h
+++ /dev/null
@@ -1,50 +0,0 @@
-#ifndef POKEDIAMOND_CTRDG_BACKUP_H
-#define POKEDIAMOND_CTRDG_BACKUP_H
-
-#include "nitro/types.h"
-#include "CTRDG_flash.h"
-#include "CTRDG_task.h"
-
-#define CTRDG_BACKUP_PHASE_PROGRAM 0x0001
-#define CTRDG_BACKUP_PHASE_SECTOR_ERASE 0x0002
-#define CTRDG_BACKUP_PHASE_CHIP_ERASE 0x0003
-#define CTRDG_BACKUP_PHASE_PARAMETER_CHECK 0x00ff
-
-#define CTRDG_BACKUP_RESULT_ERROR 0x8000
-
-extern u16 ctrdg_flash_remainder;
-
-typedef struct CTRDGiFlashTypePlusTag
-{
- u16 (*CTRDGi_WriteAgbFlashSector)(u16 secNo, u8 *src);
- u16 (*CTRDGi_EraseAgbFlashChip)(void);
- u16 (*CTRDGi_EraseAgbFlashSector)(u16 secNo);
- void (*CTRDGi_WriteAgbFlashSectorAsync)(u16 secNo, u8 *src, CTRDG_TASK_FUNC callback);
- void (*CTRDGi_EraseAgbFlashChipAsync)(CTRDG_TASK_FUNC callback);
- void (*CTRDGi_EraseAgbFlashSectorAsync)(u16 secNo, CTRDG_TASK_FUNC callback);
- u16 (*CTRDGi_PollingSR)(u16 phase, u8 *adr, u16 lastData);
- const u16 (*maxtime);
- CTRDGFlashType type;
-} CTRDGiFlashTypePlus;
-
-typedef enum
-{
- CTRDG_BACKUP_TYPE_FLASH_512K,
- CTRDG_BACKUP_TYPE_FLASH_1M,
- CTRDG_BACKUP_TYPE_SRAM
-} CTRDGBackupType;
-
-extern const u16 (*ctrdgi_fl_maxtime);
-
-extern u16 (*CTRDGi_PollingSR)(u16 phase, u8 *adr, u16 lastData);
-extern const CTRDGFlashType *AgbFlash;
-extern u16 (*CTRDGi_WriteAgbFlashSector)(u16 secNo, u8 *src);
-extern u16 (*CTRDGi_EraseAgbFlashChip)(void);
-extern u16 (*CTRDGi_EraseAgbFlashSector)(u16 secNo);
-extern void (*CTRDGi_WriteAgbFlashSectorAsync)(u16 secNo, u8 *src, CTRDG_TASK_FUNC callback);
-extern void (*CTRDGi_EraseAgbFlashChipAsync)(CTRDG_TASK_FUNC callback);
-extern void (*CTRDGi_EraseAgbFlashSectorAsync)(u16 secNo, CTRDG_TASK_FUNC callback);
-
-u16 CTRDG_IdentifyAgbBackup(CTRDGBackupType type);
-
-#endif //POKEDIAMOND_CTRDG_BACKUP_H