NVProperty generic key value store using the MCU flash area.

Dependents:   Turtle_RadioShuttle

Files at this revision

API Documentation at this revision

Comitter:
Helmut Tschemernjak
Date:
Fri Feb 01 13:37:08 2019 +0100
Parent:
5:2560e615ccd5
Child:
7:5c36e5c18b65
Commit message:
Updated

Changed in this revision

NVProperty_MBEDFlash.cpp Show annotated file Show diff for this revision Revisions of this file
NVProperty_MBEDFlash.h Show annotated file Show diff for this revision Revisions of this file
--- a/NVProperty_MBEDFlash.cpp	Fri Feb 01 13:21:55 2019 +0100
+++ b/NVProperty_MBEDFlash.cpp	Fri Feb 01 13:37:08 2019 +0100
@@ -45,7 +45,7 @@
 	_flashIAP->init();
 	
 	// at present erased flash bits are assumed with 0xff value
-	MBED_ASSERT(_flashIAP->get_erase_value() == NVProperty::PROPERTIES_EOF);
+	// MBED_ASSERT(_flashIAP->get_erase_value() == NVProperty::PROPERTIES_EOF);
 	// a min page size > 8 looks strange
 	MBED_ASSERT(_flashIAP->get_page_size() <= sizeof(int64_t));
 	
--- a/NVProperty_MBEDFlash.h	Fri Feb 01 13:21:55 2019 +0100
+++ b/NVProperty_MBEDFlash.h	Fri Feb 01 13:37:08 2019 +0100
@@ -45,9 +45,6 @@
 	static const int FLASH_ENTRY_HEADER			= 4;
 	static const int FLASH_ENTRY_HEADER_SHORT	= 2;
 	static const int MAX_DATA_ENTRY				= 256;
-
-// static const int FLASH_ENTRY_MIN_SIZE		= 8;
-// static const int FLASH_PADDING_SIZE			= 8; // writes sizes and alignment must be multiple of 64-bit,
 	
 	struct _flashEntry {
 		uint8_t key;	// Property key