diff 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
line wrap: on
line diff
--- a/flash.h	Sat Nov 17 18:03:48 2012 +1030
+++ b/flash.h	Tue Nov 20 21:54:06 2012 +1030
@@ -8,6 +8,8 @@
 void		flashenablewrite(void);
 void		flashwrite(uint32_t addr, uint8_t data);
 void		flashwait(void);
+int		flashreadblock(uint32_t addr, uint32_t len, void *_data);
+void		flashwriteblock(uint32_t addr, uint32_t len, void *_data);
 
 /* Streaming read/write */
 void		flashstartread(uint32_t addr);