summaryrefslogtreecommitdiff
path: root/src/drivers/SpiNorFlash.h
diff options
context:
space:
mode:
authorJF <jf@codingfield.com>2020-06-01 18:32:46 +0200
committerJF <jf@codingfield.com>2020-06-01 18:32:46 +0200
commitde822cc3a2f07033e881331ac8914b26023bb003 (patch)
tree23f043a10afe9f934264f043a8b5559495648a47 /src/drivers/SpiNorFlash.h
parentf6aa41c214eef418b55cf0f063c5a296b1e57b63 (diff)
Encapsulate DFU Image buffering and writing into spi flash in DfuImage.
Add some const in SPI driver.
Diffstat (limited to 'src/drivers/SpiNorFlash.h')
-rw-r--r--src/drivers/SpiNorFlash.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/drivers/SpiNorFlash.h b/src/drivers/SpiNorFlash.h
index b5f19202..98267c09 100644
--- a/src/drivers/SpiNorFlash.h
+++ b/src/drivers/SpiNorFlash.h
@@ -24,7 +24,7 @@ namespace Pinetime {
bool WriteEnabled();
uint8_t ReadConfigurationRegister();
void Read(uint32_t address, uint8_t* buffer, size_t size);
- void Write(uint32_t address, uint8_t *buffer, size_t size);
+ void Write(uint32_t address, const uint8_t *buffer, size_t size);
void WriteEnable();
void SectorErase(uint32_t sectorAddress);
uint8_t ReadSecurityRegister();