NVProperty generic key value store using the MCU flash area.
Dependents: Turtle_RadioShuttle
Diff: NVProperty_Editor.cpp
- Revision:
- 10:7999d15fd227
- Parent:
- 9:ac6c43b29434
- Child:
- 12:5539cdc8be4b
diff -r ac6c43b29434 -r 7999d15fd227 NVProperty_Editor.cpp --- a/NVProperty_Editor.cpp Mon Feb 04 10:22:29 2019 +0100 +++ b/NVProperty_Editor.cpp Wed Feb 06 15:53:49 2019 +0100 @@ -94,7 +94,8 @@ NVProperty p; rprintf("\nWelcome to the Property Editor which allows reading/writing/erasing non volatile settings\r\n\r\n"); - rprintf("Properties cmds are: l (list properties), s (set e.g. s20=value), d (delete e.g. d20), q (quit)\r\n"); + const char *help = "Properties cmds are:\r\n l (list properties), s (set e.g. s20=value), d (delete e.g. d20), q (quit)\r\n"; + rprintf(help); while(true) { char buf[80]; @@ -188,9 +189,17 @@ } } break; + case 'i': + dump("Flash-Area", (void *)0x803c000, 2048); + break; + case 'r': + dprintf("ReorgProperties"); + p.ReorgProperties(); + break; case 'q': return; default: + rprintf(help); break; } }