diff options
author | Rob Austein <sra@hactrn.net> | 2016-09-23 01:00:25 -0400 |
---|---|---|
committer | Rob Austein <sra@hactrn.net> | 2016-09-23 01:00:25 -0400 |
commit | 2dc81c98924db865be038476ecc8ce92c186efa7 (patch) | |
tree | 9e168d7e54fc30c18bd7b98e646446f4460b0f6c /spiflash_n25q128.h | |
parent | fb931dbd29d899a7e9523ee1ea6e11d263b9ad7e (diff) |
Use subsectors instead of sectors in keystore.
Diffstat (limited to 'spiflash_n25q128.h')
-rw-r--r-- | spiflash_n25q128.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/spiflash_n25q128.h b/spiflash_n25q128.h index d4c82d5..c696911 100644 --- a/spiflash_n25q128.h +++ b/spiflash_n25q128.h @@ -74,6 +74,7 @@ extern int n25q128_get_wip_flag(struct spiflash_ctx *ctx); extern int n25q128_read_page(struct spiflash_ctx *ctx, uint32_t page_offset, uint8_t *page_buffer); extern int n25q128_write_page(struct spiflash_ctx *ctx, uint32_t page_offset, const uint8_t *page_buffer); extern int n25q128_erase_sector(struct spiflash_ctx *ctx, uint32_t sector_offset); +extern int n25q128_erase_subsector(struct spiflash_ctx *ctx, uint32_t subsector_offset); extern int n25q128_write_data(struct spiflash_ctx *ctx, uint32_t offset, const uint8_t *buf, const uint32_t len, const int auto_erase); extern int n25q128_read_data(struct spiflash_ctx *ctx, uint32_t offset, uint8_t *buf, const uint32_t len); |