view 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
line wrap: on
line source

void		flashcmd(int argc, char **argv);

int		flashreadblock(uint32_t addr, uint32_t len, void *_data);
int		flashwriteblock(uint32_t addr, uint32_t len, void *_data);
uint32_t	flashcrcblock(uint32_t addr, uint32_t len);

/* 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);