From 2c7b4aaa5fd585715170166451f449e666b90b71 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nima=20Askari=20-----=20=D9=86=DB=8C=D9=85=D8=A7=20=D8=B9?= =?UTF-8?q?=D8=B3=DA=A9=D8=B1=DB=8C?= Date: Thu, 14 May 2020 08:59:07 +0430 Subject: [PATCH] change function name to ee_commit() --- ee.c | 2 +- ee.h | 9 ++++++--- 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/ee.c b/ee.c index f3757c4..6b84a7a 100644 --- a/ee.c +++ b/ee.c @@ -231,7 +231,7 @@ bool ee_writeToRam(uint32_t startVirtualAddress, uint32_t len, uint8_t* data) #endif } //########################################################################################################## -bool ee_writeRamToFlash(void) +bool ee_commit(void) { #if (_EE_USE_RAM_BYTE > 0) if (ee_format(true) == false) diff --git a/ee.h b/ee.h index 49ad91c..af046d7 100644 --- a/ee.h +++ b/ee.h @@ -7,7 +7,10 @@ Instagram: http://instagram.com/github.NimaLTD Youtube: https://www.youtube.com/channel/UCUhY7qY1klJm1d2kulr9ckw - Version: 2.0.0 + Version: 2.0.1 + + (2.0.1) + Change function name to ee_commit(). Reversion History: (2.0.0) @@ -27,8 +30,8 @@ bool ee_init(void); bool ee_format(bool keepRamData); bool ee_read(uint32_t startVirtualAddress, uint32_t len, uint8_t* data); bool ee_write(uint32_t startVirtualAddress, uint32_t len, uint8_t* data); -bool ee_writeToRam(uint32_t startVirtualAddress, uint32_t len, uint8_t* data); -bool ee_writeRamToFlash(void); +bool ee_writeToRam(uint32_t startVirtualAddress, uint32_t len, uint8_t* data); // only use when _EE_USE_RAM_BYTE is enabled +bool ee_commit(void); // only use when _EE_USE_RAM_BYTE is enabled uint32_t ee_maxVirtualAddress(void); //################################################################################################################