pure sdk for main

This commit is contained in:
divadiow
2025-08-27 09:51:58 +01:00
parent f0d033f1c9
commit 0571416e7c
3283 changed files with 1577720 additions and 1 deletions
+26
View File
@@ -0,0 +1,26 @@
#ifndef _HGIC_SYSCFG_H_
#define _HGIC_SYSCFG_H_
#define SYSCFG_MAGIC (0x1234)
enum SYSCFG_ERASE_MODE{
SYSCFG_ERASE_MODE_SECTOR,
SYSCFG_ERASE_MODE_BLOCK,
SYSCFG_ERASE_MODE_CHIP,
};
struct syscfg_info {
struct spi_nor_flash *flash1, *flash2;
uint32 addr1, addr2;
uint32 size;
uint8 erase_mode;
};
int32 syscfg_init(void *cfg, uint32 size);
int32 syscfg_read(void *cfg, uint32 size);
int32 syscfg_write(void *cfg, uint32 size);
int32 syscfg_info_get(struct syscfg_info *pinfo);
void syscfg_loaddef(void);
int32 syscfg_save(void);
#endif