annotate flash.h @ 89:fc21fb5b171b default tip

Make error message more useful
author Daniel O'Connor <darius@dons.net.au>
date Fri, 13 Mar 2015 11:39:59 +1030
parents e30fe4bb8011
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
87
e30fe4bb8011 Add missing prototype
Daniel O'Connor <darius@dons.net.au>
parents: 83
diff changeset
1 void flashcmd(int argc, char **argv);
e30fe4bb8011 Add missing prototype
Daniel O'Connor <darius@dons.net.au>
parents: 83
diff changeset
2
83
05ba84c7da97 Add a flash layer for compatibility (in future).
Daniel O'Connor <darius@dons.net.au>
parents:
diff changeset
3 int flashreadblock(uint32_t addr, uint32_t len, void *_data);
05ba84c7da97 Add a flash layer for compatibility (in future).
Daniel O'Connor <darius@dons.net.au>
parents:
diff changeset
4 int flashwriteblock(uint32_t addr, uint32_t len, void *_data);
05ba84c7da97 Add a flash layer for compatibility (in future).
Daniel O'Connor <darius@dons.net.au>
parents:
diff changeset
5 uint32_t flashcrcblock(uint32_t addr, uint32_t len);
05ba84c7da97 Add a flash layer for compatibility (in future).
Daniel O'Connor <darius@dons.net.au>
parents:
diff changeset
6
05ba84c7da97 Add a flash layer for compatibility (in future).
Daniel O'Connor <darius@dons.net.au>
parents:
diff changeset
7 /* Streaming read/write */
05ba84c7da97 Add a flash layer for compatibility (in future).
Daniel O'Connor <darius@dons.net.au>
parents:
diff changeset
8 void flashstartread(uint32_t addr);
05ba84c7da97 Add a flash layer for compatibility (in future).
Daniel O'Connor <darius@dons.net.au>
parents:
diff changeset
9 uint8_t flashreadbyte(void);
05ba84c7da97 Add a flash layer for compatibility (in future).
Daniel O'Connor <darius@dons.net.au>
parents:
diff changeset
10 void flashstartwrite(uint32_t addr, uint16_t data);
05ba84c7da97 Add a flash layer for compatibility (in future).
Daniel O'Connor <darius@dons.net.au>
parents:
diff changeset
11 void flashwriteword(uint16_t data);
05ba84c7da97 Add a flash layer for compatibility (in future).
Daniel O'Connor <darius@dons.net.au>
parents:
diff changeset
12 void flashstopread(void);
05ba84c7da97 Add a flash layer for compatibility (in future).
Daniel O'Connor <darius@dons.net.au>
parents:
diff changeset
13 void flashstopwrite(void);