Skip to content

Implement page-based log rotation (wrapping)#16

Open
eupn wants to merge 8 commits intoFactbirdHQ:masterfrom
eupn:wrap-around
Open

Implement page-based log rotation (wrapping)#16
eupn wants to merge 8 commits intoFactbirdHQ:masterfrom
eupn:wrap-around

Conversation

@eupn
Copy link
Copy Markdown
Contributor

@eupn eupn commented Jun 20, 2021

Depends on #15.

As discussed in #13, this PR implements page-based circular storage.

Uses a modified version of embedded-storage crate that adds a single ErasableStorage trait that has to be implemented for the used storage type.

Fixes #13

P.S.: tested verified in hardware.

@MathiasKoch
Copy link
Copy Markdown
Member

@eupn could you fix the conflicts on this one? Then I will merge it 👍

Thanks for the great work!

@MathiasKoch
Copy link
Copy Markdown
Member

MathiasKoch commented Jun 28, 2021

The one thing in this PR i am not super fond about is the patched embedded-storage? Could your start out by PR'ing that one? I am a maintainer there as well, so i should be able to get the discussion going on whether it's a good idea or not, with the others.

I think you should be able to auto-implement the trait as

impl<T: NorFlash> EraseableStorage for T {}

The alternative being to change this crate to rely on NorFlash instead of Storage, and then do the RMW operations ourselves here?

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.

Allow wrapping storage (circular storage)

2 participants