mirror of
https://github.com/embassy-rs/embassy.git
synced 2024-11-21 22:32:29 +00:00
feat: impl MultiwriteNorFlash
for BlockingAsync
Signed-off-by: Haobo Gu <haobogu@outlook.com>
This commit is contained in:
parent
963fda2404
commit
47b9758151
@ -104,8 +104,10 @@ where
|
|||||||
}
|
}
|
||||||
|
|
||||||
/// NOR flash wrapper
|
/// NOR flash wrapper
|
||||||
use embedded_storage::nor_flash::{ErrorType, NorFlash, ReadNorFlash};
|
use embedded_storage::nor_flash::{ErrorType, MultiwriteNorFlash, NorFlash, ReadNorFlash};
|
||||||
use embedded_storage_async::nor_flash::{NorFlash as AsyncNorFlash, ReadNorFlash as AsyncReadNorFlash};
|
use embedded_storage_async::nor_flash::{
|
||||||
|
MultiwriteNorFlash as AsyncMultiwriteNorFlash, NorFlash as AsyncNorFlash, ReadNorFlash as AsyncReadNorFlash,
|
||||||
|
};
|
||||||
|
|
||||||
impl<T> ErrorType for BlockingAsync<T>
|
impl<T> ErrorType for BlockingAsync<T>
|
||||||
where
|
where
|
||||||
@ -143,3 +145,5 @@ where
|
|||||||
self.wrapped.capacity()
|
self.wrapped.capacity()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
impl<T> AsyncMultiwriteNorFlash for BlockingAsync<T> where T: MultiwriteNorFlash {}
|
||||||
|
Loading…
Reference in New Issue
Block a user