fix: auto_erase/verif?

This commit is contained in:
2024-12-14 13:46:49 +06:00
parent 0071f68cb6
commit a0072d3d3a
5 changed files with 110 additions and 48 deletions

View File

@@ -10,8 +10,11 @@
#define MIN(a, b) ((a) < (b) ? (a) : (b))
#define BIT(x) (1 << (x))
#define READ_CHUNK_SIZE 32
#define VERIFY_CHUNK_SIZE 32
#define READ_CHUNK_SIZE 4
#define FLASH_WORD_SIZE 4
#define VERIFY_CHUNK_SIZE 4
#define VERIFY_WORDS (VERIFY_CHUNK_SIZE / FLASH_WORD_SIZE)
#define WRITE_CHUNK_SIZE 256
#define SPI_FLASH_BASE 0x08000000
@@ -129,4 +132,4 @@ __always_long_call void FLASH_StructInit_GD(void *FLASH_InitStruct);
__always_long_call uint8_t FLASH_Init(uint8_t SpicBitMode);
__always_long_call uint32_t FLASH_ClockDiv(uint8_t Div);
#endif /* _RTL8710_FLASHER_H_ */
#endif // _RTL8710_FLASHER_H_