Persistent storage stuff #4
Loading…
Reference in New Issue
No description provided.
Delete Branch "%!s(<nil>)"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
This may be useful for remembering which mode was enabled, and maybe some per-mode settings (eg. SUMP overclock enable/disable, USB-UART hardware flow control enable/disable, tempsensor I2C emul address, ...)
This should be saved to flash in some place, and the format in which it is stored should be generic/extensible in some way (inb4 RIFF).
Thoughts?
what if plaintext lol
uboot uEnv style :p
one config option per line, have some robust parsing code that can deal with potential garbage / no null terminator / etc
sure, but consider:
i dont want to do string parsing in C
🦀 time
The base for this is now implemented:
storage
branch. Also docs: 1, 2One thing that is a bit annoying is that the saving and loading of mode-specific variables is very ad-hoc and ugly, and could be done much better. So I guess some sort of wrapper API should be invented for this.
Additionally, the use-XIP-cache-as-temp-RAM stuff seems to lock up, so right now the code is statically reserving 4k of RAM for all eternity, only used when saving. Not a big fan of the situation tbh :/