Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Diff: MinimouseSrc/ApiFlash.h
- Revision:
- 1:eda561b01daf
- Parent:
- 0:2325d1d28df3
--- a/MinimouseSrc/ApiFlash.h Fri Dec 15 13:15:04 2017 +0000 +++ b/MinimouseSrc/ApiFlash.h Mon Dec 18 16:31:11 2017 +0000 @@ -32,7 +32,7 @@ int init(); - /** Read data from a flash device. + /** RestoreContext data from a flash device. * * This method invokes memcpy - reads number of bytes from the address * @@ -41,10 +41,10 @@ * @param size Size to read in bytes * @return 0 on success, negative error code on failure */ - int read(uint8_t *buffer, uint32_t addr, uint32_t size); + int RestoreContext(uint8_t *buffer, uint32_t addr, uint32_t size); - /** Program data to flash + /** StoreContext data to flash * To be safer this function have to implement a read/check data sequence after programation * * @@ -53,7 +53,7 @@ * @param size Size to write in bytes, * @return 0 on success, negative error code on failure */ - int program(const void *buffer, uint32_t addr, uint32_t size); + int StoreContext(const void *buffer, uint32_t addr, uint32_t size); /** Erase sectors