Merge pull request #2699 from HaoboGu/main

Impl `MultiwriteNorFlash` for `BlockingAsync`
This commit is contained in:
Dario Nieuwenhuis 2024-03-15 13:45:10 +00:00 committed by GitHub
commit a92a73abe4
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -104,8 +104,10 @@ where
}
/// NOR flash wrapper
use embedded_storage::nor_flash::{ErrorType, NorFlash, ReadNorFlash};
use embedded_storage_async::nor_flash::{NorFlash as AsyncNorFlash, ReadNorFlash as AsyncReadNorFlash};
use embedded_storage::nor_flash::{ErrorType, MultiwriteNorFlash, NorFlash, ReadNorFlash};
use embedded_storage_async::nor_flash::{
MultiwriteNorFlash as AsyncMultiwriteNorFlash, NorFlash as AsyncNorFlash, ReadNorFlash as AsyncReadNorFlash,
};
impl<T> ErrorType for BlockingAsync<T>
where
@ -143,3 +145,5 @@ where
self.wrapped.capacity()
}
}
impl<T> AsyncMultiwriteNorFlash for BlockingAsync<T> where T: MultiwriteNorFlash {}