diff options
| -rw-r--r-- | embassy-stm32/src/flash/f4.rs | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/embassy-stm32/src/flash/f4.rs b/embassy-stm32/src/flash/f4.rs index 3c8f81eb0..9698bcd58 100644 --- a/embassy-stm32/src/flash/f4.rs +++ b/embassy-stm32/src/flash/f4.rs | |||
| @@ -139,6 +139,7 @@ mod alt_regions { | |||
| 139 | } | 139 | } |
| 140 | } | 140 | } |
| 141 | 141 | ||
| 142 | #[cfg(all(feature = "nightly"))] | ||
| 142 | impl embedded_storage_async::nor_flash::ReadNorFlash for $type_name<'_> { | 143 | impl embedded_storage_async::nor_flash::ReadNorFlash for $type_name<'_> { |
| 143 | const READ_SIZE: usize = READ_SIZE; | 144 | const READ_SIZE: usize = READ_SIZE; |
| 144 | 145 | ||
| @@ -151,6 +152,7 @@ mod alt_regions { | |||
| 151 | } | 152 | } |
| 152 | } | 153 | } |
| 153 | 154 | ||
| 155 | #[cfg(all(feature = "nightly"))] | ||
| 154 | impl embedded_storage_async::nor_flash::NorFlash for $type_name<'_> { | 156 | impl embedded_storage_async::nor_flash::NorFlash for $type_name<'_> { |
| 155 | const WRITE_SIZE: usize = $region.write_size as usize; | 157 | const WRITE_SIZE: usize = $region.write_size as usize; |
| 156 | const ERASE_SIZE: usize = $region.erase_size as usize; | 158 | const ERASE_SIZE: usize = $region.erase_size as usize; |
