aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--embassy-stm32/src/hspi/mod.rs2
-rw-r--r--embassy-stm32/src/ospi/mod.rs3
-rw-r--r--embassy-stm32/src/qspi/mod.rs2
-rw-r--r--embassy-stm32/src/xspi/mod.rs3
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))]
89pub struct TransferConfig { 91pub 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))]
26pub struct Config { 27pub 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))]
86pub struct TransferConfig { 89pub 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))]
21pub struct TransferConfig { 22pub 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]
52pub struct Config { 54pub 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))]
26pub struct Config { 27pub 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))]
83pub struct TransferConfig { 86pub struct TransferConfig {
84 /// Instruction width (IMODE) 87 /// Instruction width (IMODE)
85 pub iwidth: XspiWidth, 88 pub iwidth: XspiWidth,