#ifndef __SPIFLASH_H
#define __SPIFLASH_H
-void write_to_flash_page(unsigned int addr, unsigned char *c, unsigned int len);
+void write_to_flash_page(unsigned int addr, const unsigned char *c, unsigned int len);
void erase_flash_sector(unsigned int addr);
-void write_to_flash(unsigned int addr, unsigned char *c, unsigned int len);
+void write_to_flash(unsigned int addr, const unsigned char *c, unsigned int len);
#endif /* __SPIFLASH_H */
spiflash_bitbang_en_write(0);
}
-void write_to_flash_page(unsigned int addr, unsigned char *c, unsigned int len)
+void write_to_flash_page(unsigned int addr, const unsigned char *c, unsigned int len)
{
unsigned int i;
#define SPIFLASH_PAGE_MASK (SPIFLASH_PAGE_SIZE - 1)
-void write_to_flash(unsigned int addr, unsigned char *c, unsigned int len)
+void write_to_flash(unsigned int addr, const unsigned char *c, unsigned int len)
{
unsigned int written = 0;