Implement the blocking embedded-storage traits for Flash<'_, Blocking> behind unstable (optional embedded-storage-03, no new features):
#[instability::unstable]
impl ErrorType for Flash<'_, Blocking> {
type Error = Error;
}
#[instability::unstable]
impl ReadNorFlash for Flash<'_, Blocking> {
const READ_SIZE: usize = 1;
#[ram]
fn read(&mut self, offset: u32, data: &mut [u8]) -> Result<(), Self::Error> {}
fn capacity(&self) -> usize {}
}
#[instability::unstable]
impl NorFlash for Flash<'_, Blocking> {
const WRITE_SIZE: usize = 4;
const ERASE_SIZE: usize = 4096;
#[ram]
fn erase(&mut self, from: u32, to: u32) -> Result<(), Self::Error> {}
#[ram]
fn write(&mut self, offset: u32, data: &[u8]) -> Result<(), Self::Error> {}
}
#[instability::unstable]
impl MultiwriteNorFlash for Flash<'_, Blocking> {}
NotAligned/OutOfBounds map to the matching NorFlashErrorKind, everything else to Other. Multiwrite is plain-access only. These stay unstable until embedded-storage 1.0. READ_SIZE drops from 4 to 1, so add HIL coverage for unaligned reads.
Implement the blocking embedded-storage traits for
Flash<'_, Blocking>behindunstable(optionalembedded-storage-03, no new features):NotAligned/OutOfBoundsmap to the matchingNorFlashErrorKind, everything else toOther. Multiwrite is plain-access only. These stay unstable until embedded-storage 1.0.READ_SIZEdrops from 4 to 1, so add HIL coverage for unaligned reads.