mirror of
https://github.com/embassy-rs/embassy.git
synced 2024-11-22 06:42:32 +00:00
Add Clone derive to flash Partition in embassy-embedded-hal
This commit is contained in:
parent
e54c753537
commit
20bf995c3b
@ -12,6 +12,7 @@ use super::Error;
|
|||||||
/// There is no guarantee that muliple partitions on the same flash
|
/// There is no guarantee that muliple partitions on the same flash
|
||||||
/// operate on mutually exclusive ranges - such a separation is up to
|
/// operate on mutually exclusive ranges - such a separation is up to
|
||||||
/// the user to guarantee.
|
/// the user to guarantee.
|
||||||
|
#[derive(Clone)]
|
||||||
pub struct Partition<'a, M: RawMutex, T: NorFlash> {
|
pub struct Partition<'a, M: RawMutex, T: NorFlash> {
|
||||||
flash: &'a Mutex<M, T>,
|
flash: &'a Mutex<M, T>,
|
||||||
offset: u32,
|
offset: u32,
|
||||||
|
@ -13,6 +13,7 @@ use super::Error;
|
|||||||
/// There is no guarantee that muliple partitions on the same flash
|
/// There is no guarantee that muliple partitions on the same flash
|
||||||
/// operate on mutually exclusive ranges - such a separation is up to
|
/// operate on mutually exclusive ranges - such a separation is up to
|
||||||
/// the user to guarantee.
|
/// the user to guarantee.
|
||||||
|
#[derive(Clone)]
|
||||||
pub struct BlockingPartition<'a, M: RawMutex, T: NorFlash> {
|
pub struct BlockingPartition<'a, M: RawMutex, T: NorFlash> {
|
||||||
flash: &'a Mutex<M, RefCell<T>>,
|
flash: &'a Mutex<M, RefCell<T>>,
|
||||||
offset: u32,
|
offset: u32,
|
||||||
|
Loading…
Reference in New Issue
Block a user