summaryrefslogtreecommitdiff
path: root/controller/fw/src/spi_flash.h
diff options
context:
space:
mode:
authorjaseg <git-bigdata-wsl-arch@jaseg.de>2020-03-21 14:19:01 +0100
committerjaseg <git-bigdata-wsl-arch@jaseg.de>2020-03-21 14:19:01 +0100
commit3beecbc4fa60773ffbdf04ce1908a86be5908551 (patch)
tree3a470e3e86662804a090141d8843c46ce8620191 /controller/fw/src/spi_flash.h
parent37338e2ad8ca226119121432b65f6c61134e60ac (diff)
downloadmaster-thesis-3beecbc4fa60773ffbdf04ce1908a86be5908551.tar.gz
master-thesis-3beecbc4fa60773ffbdf04ce1908a86be5908551.tar.bz2
master-thesis-3beecbc4fa60773ffbdf04ce1908a86be5908551.zip
Basic JTAG working
Diffstat (limited to 'controller/fw/src/spi_flash.h')
-rw-r--r--controller/fw/src/spi_flash.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/controller/fw/src/spi_flash.h b/controller/fw/src/spi_flash.h
index 2be8933..6443f11 100644
--- a/controller/fw/src/spi_flash.h
+++ b/controller/fw/src/spi_flash.h
@@ -22,7 +22,7 @@ struct spi_flash_if {
void spif_init(struct spi_flash_if *spif, size_t page_size, SPI_TypeDef *spi, void (*cs)(bool val));
void spif_write(struct spi_flash_if *spif, size_t addr, size_t len, const char* data);
-void spif_read(struct spi_flash_if *spif, size_t addr, size_t len, char* data);
+ssize_t spif_read(struct spi_flash_if *spif, size_t addr, size_t len, char* data);
void spif_clear_mem(struct spi_flash_if *spif);
void spif_clear_sector(struct spi_flash_if *spif, size_t addr);