NVProperty generic key value store using the MCU flash area.
Dependents: Turtle_RadioShuttle
Diff: NVProperty.h
- Revision:
- 12:5539cdc8be4b
- Parent:
- 1:3a8297ad8cd9
- Child:
- 15:bc28cdbcfd68
--- a/NVProperty.h Sun Feb 10 10:43:09 2019 +0100 +++ b/NVProperty.h Sun Feb 10 18:39:29 2019 +0100 @@ -28,7 +28,11 @@ * flash blocks are less busy. For the D21 it is a good idea to * use increments of 16kB because this is the region locking area size */ +#ifndef TARGET_STM32L0 NVProperty(int propSizekB = 16, bool erase = false); +#else + NVProperty(int propSizekB = 4, bool erase = false); +#endif ~NVProperty(); public: enum NVPType { @@ -160,8 +164,7 @@ PRIVATE_RANGE_START = 128, PRIVATE_RANGE_END = 254, - PROPERTIES_EOF = 255, - MAX_PROPERTIES = 256, + MAX_PROPERTIES = 254, // 1-254 }; private: