Mercurial > ~darius > hgwebdir.cgi > stm32temp
diff flash.h @ 25:a9cc07caa801
Add stream read/write commands.
author | Daniel O'Connor <darius@dons.net.au> |
---|---|
date | Sat, 17 Nov 2012 12:18:24 +1030 |
parents | bd8e2cf04034 |
children | 5c9d2e3d6591 |
line wrap: on
line diff
--- a/flash.h Sat Nov 17 12:17:58 2012 +1030 +++ b/flash.h Sat Nov 17 12:18:24 2012 +1030 @@ -7,6 +7,15 @@ uint8_t flashread(uint32_t addr); void flashenablewrite(void); void flashwrite(uint32_t addr, uint8_t data); +void flashwait(void); + +/* Streaming read/write */ +void flashstartread(uint32_t addr); +uint8_t flashreadbyte(void); +void flashstartwrite(uint32_t addr, uint16_t data); +void flashwriteword(uint16_t data); +void flashstopread(void); +void flashstopwrite(void); #define FL_BUSY (1<<0) #define FL_WEL (1<<1)