Flash driver interface
Here's the start of a driver interface for flash memory, modeled roughly on the datagram device. Right now I'm implementing it as erasing/writing sectors only, and reading at an arbitrary offset.
I'm open to some bikeshedding on this, I think it mostly does what I was after when I wrote it, but it's definitely incomplete from a library perspective.
Perhaps we can put more specific interfaces not under base but under a flash namespace (in this case)?
Looks like the rebase fixed the linter errors.
Perhaps we can put more specific interfaces not under base but under a flash namespace (in this case)?
I don't have a strong opinion about location in the tree, but I'm also not sure what level of abstraction is appropriate. It's labeled "flash" right now, and the main goal when writing it was a basic, consistent interface to MCU internal flash since I was working on a bootloader, but it could really represent just about any nonvolatile memory.