aboutsummaryrefslogtreecommitdiff
path: root/spiflash_n25q128.h
diff options
context:
space:
mode:
authorPaul Selkirk <paul@psgd.org>2017-02-20 19:51:03 -0500
committerPaul Selkirk <paul@psgd.org>2017-02-20 19:52:19 -0500
commit0c298a1c2d0ab40760bf38b27fec43d8b8f3afb5 (patch)
treed86ff70d09a6e422e005da8c2e780b3929ac79c0 /spiflash_n25q128.h
parente9011a1ae42333fdcbebf9b85ced6ea942f3547c (diff)
Move dangerous auto_erase functionality to where it's actually used.
Diffstat (limited to 'spiflash_n25q128.h')
-rw-r--r--spiflash_n25q128.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/spiflash_n25q128.h b/spiflash_n25q128.h
index c01629d..ff14c34 100644
--- a/spiflash_n25q128.h
+++ b/spiflash_n25q128.h
@@ -77,6 +77,6 @@ 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_erase_bulk(struct spiflash_ctx *ctx);
-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_write_data(struct spiflash_ctx *ctx, uint32_t offset, const uint8_t *buf, const uint32_t len);
extern int n25q128_read_data(struct spiflash_ctx *ctx, uint32_t offset, uint8_t *buf, const uint32_t len);
#endif /* __STM32_SPIFLASH_N25Q128_H */