comparison flash.h @ 27:5c9d2e3d6591

Add flashread/writeblock commands which read/write a block of data to flash with a CRC.
author Daniel O'Connor <darius@dons.net.au>
date Tue, 20 Nov 2012 21:54:06 +1030
parents a9cc07caa801
children 03592ca4d37e
comparison
equal deleted inserted replaced
26:74efdb21ae5d 27:5c9d2e3d6591
6 void flash4kerase(uint32_t addr); 6 void flash4kerase(uint32_t addr);
7 uint8_t flashread(uint32_t addr); 7 uint8_t flashread(uint32_t addr);
8 void flashenablewrite(void); 8 void flashenablewrite(void);
9 void flashwrite(uint32_t addr, uint8_t data); 9 void flashwrite(uint32_t addr, uint8_t data);
10 void flashwait(void); 10 void flashwait(void);
11 int flashreadblock(uint32_t addr, uint32_t len, void *_data);
12 void flashwriteblock(uint32_t addr, uint32_t len, void *_data);
11 13
12 /* Streaming read/write */ 14 /* Streaming read/write */
13 void flashstartread(uint32_t addr); 15 void flashstartread(uint32_t addr);
14 uint8_t flashreadbyte(void); 16 uint8_t flashreadbyte(void);
15 void flashstartwrite(uint32_t addr, uint16_t data); 17 void flashstartwrite(uint32_t addr, uint16_t data);