Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ESP IDF Partitions API #511

Merged
merged 18 commits into from
Nov 18, 2024
Merged

ESP IDF Partitions API #511

merged 18 commits into from
Nov 18, 2024

Conversation

ivmarkov
Copy link
Collaborator

@ivmarkov ivmarkov commented Nov 10, 2024

Exposes the esp_partition_t as well as the wear-leveling wl_handle_t API that lives on top.

No safe way to create an EspPartition instance, but everything else is safe API.

Also optionally implements the blocking embedded-storage traits, if the corresponding new feature is enabled.

No async for now, and it anyway would be a workaround so not sure it is worth it (another thread).
I think folks are better implementing a trivial "async" embedded-storage impl over the blocking one, and then scheduling it in a low priority/high-latency executor, where the lost (millis?) in writing to/erasing the storage won't be noticed.

Also closes #405

@Vollbrecht
Copy link
Collaborator

Its only not building, because nightly is broken right? Its otherwise in a state where i can look at it now?

@ivmarkov
Copy link
Collaborator Author

Yes and yes.

src/partition.rs Outdated Show resolved Hide resolved
src/partition.rs Outdated Show resolved Hide resolved
Copy link
Collaborator

@Vollbrecht Vollbrecht left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Besides the docu nits, the PR looks solid for me.

@ivmarkov ivmarkov merged commit 9e70526 into master Nov 18, 2024
15 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Is it possible to impl embedded-storage for nvs?
2 participants