Skip to content

Commit fe994ce

Browse files
committed
Add new RMW storage implementation
Despite it looks little bit low-level but it works well with unaligned access. I/O operations optimized by splitting it to stages: - Not aligned start - Aligned middle - Not Aligned end Each stage may or may not be needed depending from memory offset and data length. Also the data checked to determine that erase and/or write needed or not.
1 parent f954fd2 commit fe994ce

File tree

3 files changed

+477
-165
lines changed

3 files changed

+477
-165
lines changed

src/iter.rs

Lines changed: 0 additions & 64 deletions
This file was deleted.

src/lib.rs

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -8,17 +8,9 @@
88
#![deny(missing_docs)]
99
#![deny(unsafe_code)]
1010

11-
/// Currently contains [`OverlapIterator`]
12-
pub mod iter;
1311
/// Technology specific traits for NOR Flashes
1412
pub mod nor_flash;
1513

16-
/// A region denotes a contiguous piece of memory between two addresses.
17-
pub trait Region {
18-
/// Check if `address` is contained in the region of `Self`
19-
fn contains(&self, address: u32) -> bool;
20-
}
21-
2214
/// Transparent read only storage trait
2315
pub trait ReadStorage {
2416
/// An enumeration of storage errors

0 commit comments

Comments
 (0)