Skip to content

Commit

Permalink
implemented MultiwriteNorFlash
Browse files Browse the repository at this point in the history
This is needed for Sequential 
Storage crate delete operation
  • Loading branch information
guruprasath-sterna authored Dec 4, 2024
1 parent 02ba6cd commit 6e1f22b
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions embassy-stm32/src/flash/common.rs
Original file line number Diff line number Diff line change
Expand Up @@ -244,6 +244,8 @@ impl<MODE> embedded_storage::nor_flash::NorFlash for Flash<'_, MODE> {
}
}

impl<MODE> embedded_storage::nor_flash::MultiwriteNorFlash for Flash<'_, MODE> {}

foreach_flash_region! {
($type_name:ident, $write_size:literal, $erase_size:literal) => {
impl<MODE> crate::_generated::flash_regions::$type_name<'_, MODE> {
Expand Down Expand Up @@ -302,5 +304,8 @@ foreach_flash_region! {
self.blocking_erase(from, to)
}
}

impl embedded_storage::nor_flash::MultiwriteNorFlash for crate::_generated::flash_regions::$type_name<'_, Blocking> {}

};
}

0 comments on commit 6e1f22b

Please sign in to comment.