foboot/examples/usb-cdcacm/include/spiflash.h
Sean Cross 0fce77fb21 examples: add usb-cdcacm example
This tests that multiple endpoints work as we expect.

Signed-off-by: Sean Cross <sean@xobs.io>
2019-04-21 21:44:37 +08:00

9 lines
283 B
C

#ifndef __SPIFLASH_H
#define __SPIFLASH_H
void write_to_flash_page(unsigned int addr, const unsigned char *c, unsigned int len);
void erase_flash_sector(unsigned int addr);
void write_to_flash(unsigned int addr, const unsigned char *c, unsigned int len);
#endif /* __SPIFLASH_H */