diff options
| -rw-r--r-- | embassy-stm32/src/hspi/mod.rs | 2 | ||||
| -rw-r--r-- | embassy-stm32/src/ospi/mod.rs | 3 | ||||
| -rw-r--r-- | embassy-stm32/src/qspi/mod.rs | 2 | ||||
| -rw-r--r-- | embassy-stm32/src/xspi/mod.rs | 3 |
4 files changed, 10 insertions, 0 deletions
diff --git a/embassy-stm32/src/hspi/mod.rs b/embassy-stm32/src/hspi/mod.rs index 3b73062a2..95d9e5099 100644 --- a/embassy-stm32/src/hspi/mod.rs +++ b/embassy-stm32/src/hspi/mod.rs | |||
| @@ -86,6 +86,8 @@ impl Default for Config { | |||
| 86 | } | 86 | } |
| 87 | 87 | ||
| 88 | /// HSPI transfer configuration. | 88 | /// HSPI transfer configuration. |
| 89 | #[derive(Clone, Copy)] | ||
| 90 | #[cfg_attr(feature = "defmt", derive(defmt::Format))] | ||
| 89 | pub struct TransferConfig { | 91 | pub struct TransferConfig { |
| 90 | /// Instruction width (IMODE) | 92 | /// Instruction width (IMODE) |
| 91 | pub iwidth: HspiWidth, | 93 | pub iwidth: HspiWidth, |
diff --git a/embassy-stm32/src/ospi/mod.rs b/embassy-stm32/src/ospi/mod.rs index cbd6c8d35..eebaf5573 100644 --- a/embassy-stm32/src/ospi/mod.rs +++ b/embassy-stm32/src/ospi/mod.rs | |||
| @@ -23,6 +23,7 @@ use crate::{peripherals, Peri}; | |||
| 23 | 23 | ||
| 24 | /// OPSI driver config. | 24 | /// OPSI driver config. |
| 25 | #[derive(Clone, Copy)] | 25 | #[derive(Clone, Copy)] |
| 26 | #[cfg_attr(feature = "defmt", derive(defmt::Format))] | ||
| 26 | pub struct Config { | 27 | pub struct Config { |
| 27 | /// Fifo threshold used by the peripheral to generate the interrupt indicating data | 28 | /// Fifo threshold used by the peripheral to generate the interrupt indicating data |
| 28 | /// or space is available in the FIFO | 29 | /// or space is available in the FIFO |
| @@ -83,6 +84,8 @@ impl Default for Config { | |||
| 83 | } | 84 | } |
| 84 | 85 | ||
| 85 | /// OSPI transfer configuration. | 86 | /// OSPI transfer configuration. |
| 87 | #[derive(Clone, Copy)] | ||
| 88 | #[cfg_attr(feature = "defmt", derive(defmt::Format))] | ||
| 86 | pub struct TransferConfig { | 89 | pub struct TransferConfig { |
| 87 | /// Instruction width (IMODE) | 90 | /// Instruction width (IMODE) |
| 88 | pub iwidth: OspiWidth, | 91 | pub iwidth: OspiWidth, |
diff --git a/embassy-stm32/src/qspi/mod.rs b/embassy-stm32/src/qspi/mod.rs index 0644069a6..b03cd9009 100644 --- a/embassy-stm32/src/qspi/mod.rs +++ b/embassy-stm32/src/qspi/mod.rs | |||
| @@ -18,6 +18,7 @@ use crate::{peripherals, Peri}; | |||
| 18 | 18 | ||
| 19 | /// QSPI transfer configuration. | 19 | /// QSPI transfer configuration. |
| 20 | #[derive(Clone, Copy)] | 20 | #[derive(Clone, Copy)] |
| 21 | #[cfg_attr(feature = "defmt", derive(defmt::Format))] | ||
| 21 | pub struct TransferConfig { | 22 | pub struct TransferConfig { |
| 22 | /// Instruction width (IMODE) | 23 | /// Instruction width (IMODE) |
| 23 | pub iwidth: QspiWidth, | 24 | pub iwidth: QspiWidth, |
| @@ -48,6 +49,7 @@ impl Default for TransferConfig { | |||
| 48 | 49 | ||
| 49 | /// QSPI driver configuration. | 50 | /// QSPI driver configuration. |
| 50 | #[derive(Clone, Copy)] | 51 | #[derive(Clone, Copy)] |
| 52 | #[cfg_attr(feature = "defmt", derive(defmt::Format))] | ||
| 51 | #[non_exhaustive] | 53 | #[non_exhaustive] |
| 52 | pub struct Config { | 54 | pub struct Config { |
| 53 | /// Flash memory size representend as 2^[0-32], as reasonable minimum 1KiB(9) was chosen. | 55 | /// Flash memory size representend as 2^[0-32], as reasonable minimum 1KiB(9) was chosen. |
diff --git a/embassy-stm32/src/xspi/mod.rs b/embassy-stm32/src/xspi/mod.rs index 5ae074a90..901569f64 100644 --- a/embassy-stm32/src/xspi/mod.rs +++ b/embassy-stm32/src/xspi/mod.rs | |||
| @@ -23,6 +23,7 @@ use crate::{peripherals, Peri}; | |||
| 23 | 23 | ||
| 24 | /// XPSI driver config. | 24 | /// XPSI driver config. |
| 25 | #[derive(Clone, Copy)] | 25 | #[derive(Clone, Copy)] |
| 26 | #[cfg_attr(feature = "defmt", derive(defmt::Format))] | ||
| 26 | pub struct Config { | 27 | pub struct Config { |
| 27 | /// Fifo threshold used by the peripheral to generate the interrupt indicating data | 28 | /// Fifo threshold used by the peripheral to generate the interrupt indicating data |
| 28 | /// or space is available in the FIFO | 29 | /// or space is available in the FIFO |
| @@ -80,6 +81,8 @@ impl Default for Config { | |||
| 80 | } | 81 | } |
| 81 | 82 | ||
| 82 | /// XSPI transfer configuration. | 83 | /// XSPI transfer configuration. |
| 84 | #[derive(Clone, Copy)] | ||
| 85 | #[cfg_attr(feature = "defmt", derive(defmt::Format))] | ||
| 83 | pub struct TransferConfig { | 86 | pub struct TransferConfig { |
| 84 | /// Instruction width (IMODE) | 87 | /// Instruction width (IMODE) |
| 85 | pub iwidth: XspiWidth, | 88 | pub iwidth: XspiWidth, |
