diff options
Diffstat (limited to 'embassy-stm32/src/flash/asynch.rs')
| -rw-r--r-- | embassy-stm32/src/flash/asynch.rs | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/embassy-stm32/src/flash/asynch.rs b/embassy-stm32/src/flash/asynch.rs index e966e2a77..eae40c7ec 100644 --- a/embassy-stm32/src/flash/asynch.rs +++ b/embassy-stm32/src/flash/asynch.rs | |||
| @@ -55,7 +55,6 @@ impl interrupt::typelevel::Handler<crate::interrupt::typelevel::FLASH> for Inter | |||
| 55 | } | 55 | } |
| 56 | } | 56 | } |
| 57 | 57 | ||
| 58 | #[cfg(feature = "nightly")] | ||
| 59 | impl embedded_storage_async::nor_flash::ReadNorFlash for Flash<'_, Async> { | 58 | impl embedded_storage_async::nor_flash::ReadNorFlash for Flash<'_, Async> { |
| 60 | const READ_SIZE: usize = super::READ_SIZE; | 59 | const READ_SIZE: usize = super::READ_SIZE; |
| 61 | 60 | ||
| @@ -68,7 +67,6 @@ impl embedded_storage_async::nor_flash::ReadNorFlash for Flash<'_, Async> { | |||
| 68 | } | 67 | } |
| 69 | } | 68 | } |
| 70 | 69 | ||
| 71 | #[cfg(feature = "nightly")] | ||
| 72 | impl embedded_storage_async::nor_flash::NorFlash for Flash<'_, Async> { | 70 | impl embedded_storage_async::nor_flash::NorFlash for Flash<'_, Async> { |
| 73 | const WRITE_SIZE: usize = WRITE_SIZE; | 71 | const WRITE_SIZE: usize = WRITE_SIZE; |
| 74 | const ERASE_SIZE: usize = super::MAX_ERASE_SIZE; | 72 | const ERASE_SIZE: usize = super::MAX_ERASE_SIZE; |
| @@ -158,8 +156,7 @@ foreach_flash_region! { | |||
| 158 | } | 156 | } |
| 159 | } | 157 | } |
| 160 | 158 | ||
| 161 | #[cfg(feature = "nightly")] | 159 | impl embedded_storage_async::nor_flash::ReadNorFlash for crate::_generated::flash_regions::$type_name<'_, Async> { |
| 162 | impl embedded_storage_async::nor_flash::ReadNorFlash for crate::_generated::flash_regions::$type_name<'_, Async> { | ||
| 163 | const READ_SIZE: usize = super::READ_SIZE; | 160 | const READ_SIZE: usize = super::READ_SIZE; |
| 164 | 161 | ||
| 165 | async fn read(&mut self, offset: u32, bytes: &mut [u8]) -> Result<(), Self::Error> { | 162 | async fn read(&mut self, offset: u32, bytes: &mut [u8]) -> Result<(), Self::Error> { |
| @@ -171,8 +168,7 @@ foreach_flash_region! { | |||
| 171 | } | 168 | } |
| 172 | } | 169 | } |
| 173 | 170 | ||
| 174 | #[cfg(feature = "nightly")] | 171 | impl embedded_storage_async::nor_flash::NorFlash for crate::_generated::flash_regions::$type_name<'_, Async> { |
| 175 | impl embedded_storage_async::nor_flash::NorFlash for crate::_generated::flash_regions::$type_name<'_, Async> { | ||
| 176 | const WRITE_SIZE: usize = $write_size; | 172 | const WRITE_SIZE: usize = $write_size; |
| 177 | const ERASE_SIZE: usize = $erase_size; | 173 | const ERASE_SIZE: usize = $erase_size; |
| 178 | 174 | ||
