fholin fholin / Mbed 2 deprecated MiniMousetest

Dependencies:   mbed

Revision:
1:eda561b01daf
Parent:
0:2325d1d28df3
--- a/MinimouseSrc/ApiFlash.cpp	Fri Dec 15 13:15:04 2017 +0000
+++ b/MinimouseSrc/ApiFlash.cpp	Mon Dec 18 16:31:11 2017 +0000
@@ -27,7 +27,7 @@
     // to be completed by mcu providers
     return (0);
 }
-int Flash::read(uint8_t *buffer, uint32_t addr, uint32_t size){
+int Flash::RestoreContext(uint8_t *buffer, uint32_t addr, uint32_t size){
      /* have to be implemented by mcu providers
     the following code propose a lite implementation without any error cases*/
     int i;
@@ -39,7 +39,7 @@
 
 
 
-int Flash::program(const void *buffer, uint32_t addr, uint32_t size){
+int Flash::StoreContext(const void *buffer, uint32_t addr, uint32_t size){
     /* have to be implemented by mcu providers
     the following code propose a lite implementation without any error cases
     this section have to be very robust, have to support failure mode such as  power off during flash programmation