diff options
| -rw-r--r-- | embassy-stm32/src/ospi/enums.rs | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/embassy-stm32/src/ospi/enums.rs b/embassy-stm32/src/ospi/enums.rs index 4021f7ce3..4db801752 100644 --- a/embassy-stm32/src/ospi/enums.rs +++ b/embassy-stm32/src/ospi/enums.rs | |||
| @@ -23,6 +23,7 @@ impl Into<u8> for OspiMode { | |||
| 23 | /// Ospi lane width | 23 | /// Ospi lane width |
| 24 | #[allow(dead_code)] | 24 | #[allow(dead_code)] |
| 25 | #[derive(Copy, Clone)] | 25 | #[derive(Copy, Clone)] |
| 26 | #[cfg_attr(feature = "defmt", derive(defmt::Format))] | ||
| 26 | pub enum OspiWidth { | 27 | pub enum OspiWidth { |
| 27 | /// None | 28 | /// None |
| 28 | NONE, | 29 | NONE, |
| @@ -71,6 +72,7 @@ impl Into<bool> for FlashSelection { | |||
| 71 | #[allow(dead_code)] | 72 | #[allow(dead_code)] |
| 72 | #[allow(missing_docs)] | 73 | #[allow(missing_docs)] |
| 73 | #[derive(Copy, Clone)] | 74 | #[derive(Copy, Clone)] |
| 75 | #[cfg_attr(feature = "defmt", derive(defmt::Format))] | ||
| 74 | pub enum WrapSize { | 76 | pub enum WrapSize { |
| 75 | None, | 77 | None, |
| 76 | _16Bytes, | 78 | _16Bytes, |
| @@ -95,6 +97,7 @@ impl Into<u8> for WrapSize { | |||
| 95 | #[allow(missing_docs)] | 97 | #[allow(missing_docs)] |
| 96 | #[allow(dead_code)] | 98 | #[allow(dead_code)] |
| 97 | #[derive(Copy, Clone)] | 99 | #[derive(Copy, Clone)] |
| 100 | #[cfg_attr(feature = "defmt", derive(defmt::Format))] | ||
| 98 | pub enum MemoryType { | 101 | pub enum MemoryType { |
| 99 | Micron, | 102 | Micron, |
| 100 | Macronix, | 103 | Macronix, |
| @@ -120,6 +123,7 @@ impl Into<u8> for MemoryType { | |||
| 120 | /// Ospi memory size. | 123 | /// Ospi memory size. |
| 121 | #[allow(missing_docs)] | 124 | #[allow(missing_docs)] |
| 122 | #[derive(Copy, Clone)] | 125 | #[derive(Copy, Clone)] |
| 126 | #[cfg_attr(feature = "defmt", derive(defmt::Format))] | ||
| 123 | pub enum MemorySize { | 127 | pub enum MemorySize { |
| 124 | _1KiB, | 128 | _1KiB, |
| 125 | _2KiB, | 129 | _2KiB, |
| @@ -180,6 +184,7 @@ impl Into<u8> for MemorySize { | |||
| 180 | 184 | ||
| 181 | /// Ospi Address size | 185 | /// Ospi Address size |
| 182 | #[derive(Copy, Clone)] | 186 | #[derive(Copy, Clone)] |
| 187 | #[cfg_attr(feature = "defmt", derive(defmt::Format))] | ||
| 183 | pub enum AddressSize { | 188 | pub enum AddressSize { |
| 184 | /// 8-bit address | 189 | /// 8-bit address |
| 185 | _8Bit, | 190 | _8Bit, |
| @@ -205,6 +210,7 @@ impl Into<u8> for AddressSize { | |||
| 205 | /// Time the Chip Select line stays high. | 210 | /// Time the Chip Select line stays high. |
| 206 | #[allow(missing_docs)] | 211 | #[allow(missing_docs)] |
| 207 | #[derive(Copy, Clone)] | 212 | #[derive(Copy, Clone)] |
| 213 | #[cfg_attr(feature = "defmt", derive(defmt::Format))] | ||
| 208 | pub enum ChipSelectHighTime { | 214 | pub enum ChipSelectHighTime { |
| 209 | _1Cycle, | 215 | _1Cycle, |
| 210 | _2Cycle, | 216 | _2Cycle, |
| @@ -234,6 +240,7 @@ impl Into<u8> for ChipSelectHighTime { | |||
| 234 | /// FIFO threshold. | 240 | /// FIFO threshold. |
| 235 | #[allow(missing_docs)] | 241 | #[allow(missing_docs)] |
| 236 | #[derive(Copy, Clone)] | 242 | #[derive(Copy, Clone)] |
| 243 | #[cfg_attr(feature = "defmt", derive(defmt::Format))] | ||
| 237 | pub enum FIFOThresholdLevel { | 244 | pub enum FIFOThresholdLevel { |
| 238 | _1Bytes, | 245 | _1Bytes, |
| 239 | _2Bytes, | 246 | _2Bytes, |
| @@ -311,6 +318,7 @@ impl Into<u8> for FIFOThresholdLevel { | |||
| 311 | /// Dummy cycle count | 318 | /// Dummy cycle count |
| 312 | #[allow(missing_docs)] | 319 | #[allow(missing_docs)] |
| 313 | #[derive(Copy, Clone)] | 320 | #[derive(Copy, Clone)] |
| 321 | #[cfg_attr(feature = "defmt", derive(defmt::Format))] | ||
| 314 | pub enum DummyCycles { | 322 | pub enum DummyCycles { |
| 315 | _0, | 323 | _0, |
| 316 | _1, | 324 | _1, |
