NVProperty generic key value store using the MCU flash area.
Dependents: Turtle_RadioShuttle
Diff: NVProperty.cpp
- Revision:
- 4:eb6850e3bc21
- Parent:
- 1:3a8297ad8cd9
diff -r 968b84113ef3 -r eb6850e3bc21 NVProperty.cpp --- a/NVProperty.cpp Thu Jan 24 15:38:20 2019 +0100 +++ b/NVProperty.cpp Thu Jan 31 21:31:29 2019 +0100 @@ -25,10 +25,12 @@ #include <NVProperty_ESP32efuse.h> #elif defined(ARDUINO_SAMD_ZERO) || defined(ARDUINO_ARCH_SAMD) #include <NVProperty_D21Flash.h> -#elif defined(__MBED__) && defined(TARGET_STM32L4) +#elif __MBED__ #include <mbed.h> - #include <NVProperty_L4OTP.h> - #include <NVProperty_L4Flash.h> + #include <NVProperty_MBEDFlash.h> + #ifdef TARGET_STM32L4 + #include <NVProperty_L4OTP.h> + #endif #else #error "Unkown implementation" #endif @@ -45,8 +47,8 @@ _flash = new NVProperty_ESP32NVS(); #elif defined(ARDUINO_SAMD_ZERO) || defined(ARDUINO_ARCH_SAMD) _flash = new NVProperty_D21Flash(propSizekB, erase); -#elif TARGET_STM32L4 - // TODO _flash = new NVProperty_L4Flash(propSizekB, erase); +#elif __MBED__ + _flash = new NVProperty_MBEDFlash(propSizekB, erase); #else #error "unkown platform" #endif