Skip to content

Commit 5d9fc22

Browse files
committed
missed some defmt derives
1 parent 69eab2a commit 5d9fc22

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

src/gpdma/config.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -232,6 +232,7 @@ impl<T> PeripheralSource for PeripheralToPeripheral<T> {
232232

233233
/// Marker struct for memory-to-memory transfers (no special options)
234234
#[derive(Clone, Copy, Debug, Default, PartialEq)]
235+
#[cfg_attr(feature = "defmt", derive(defmt::Format))]
235236
pub struct MemoryToMemory;
236237

237238
impl crate::Sealed for MemoryToMemory {}

src/gpdma/config/transform.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ use super::Word;
1818
/// Represents the options available for the padding and alignment step in the data transformation
1919
/// pipeline
2020
#[derive(Clone, Copy, Debug, Default, PartialEq)]
21+
#[cfg_attr(feature = "defmt", derive(defmt::Format))]
2122
pub(crate) enum PaddingAlignmentMode {
2223
#[default]
2324
None,
@@ -100,6 +101,7 @@ pub trait DestinationByteExchange {
100101
/// source and destination word sizes, so the builder can be created without specifying the types
101102
/// explicitly.
102103
#[derive(Clone, Copy, Debug, Default, PartialEq)]
104+
#[cfg_attr(feature = "defmt", derive(defmt::Format))]
103105
pub struct DataTransformBuilder<S, D> {
104106
_source_type: PhantomData<S>,
105107
_destination_type: PhantomData<D>,
@@ -301,6 +303,7 @@ impl<S: Word> DestinationByteExchange for DataTransformBuilder<S, u32> {
301303
/// DataTransform represents the configuration of the data transformation pipeline as produced
302304
/// by the above builder structs.
303305
#[derive(Clone, Copy, Debug, Default, PartialEq)]
306+
#[cfg_attr(feature = "defmt", derive(defmt::Format))]
304307
pub struct DataTransform {
305308
pub(crate) source_byte_exchange: bool,
306309
pub(crate) padding_alignment: PaddingAlignmentMode,

0 commit comments

Comments
 (0)