173173
174174use core:: fmt:: Debug ;
175175
176- #[ cfg( feature = "defmt-03 " ) ]
176+ #[ cfg( feature = "defmt" ) ]
177177use crate :: defmt;
178178
179179/// Clock polarity.
180180#[ derive( Clone , Copy , Debug , PartialEq , Eq ) ]
181- #[ cfg_attr( feature = "defmt-03 " , derive( defmt:: Format ) ) ]
181+ #[ cfg_attr( feature = "defmt" , derive( defmt:: Format ) ) ]
182182pub enum Polarity {
183183 /// Clock signal low when idle.
184184 IdleLow ,
@@ -188,7 +188,7 @@ pub enum Polarity {
188188
189189/// Clock phase.
190190#[ derive( Clone , Copy , Debug , PartialEq , Eq ) ]
191- #[ cfg_attr( feature = "defmt-03 " , derive( defmt:: Format ) ) ]
191+ #[ cfg_attr( feature = "defmt" , derive( defmt:: Format ) ) ]
192192pub enum Phase {
193193 /// Data in "captured" on the first clock transition.
194194 CaptureOnFirstTransition ,
@@ -198,7 +198,7 @@ pub enum Phase {
198198
199199/// SPI mode.
200200#[ derive( Clone , Copy , Debug , PartialEq , Eq ) ]
201- #[ cfg_attr( feature = "defmt-03 " , derive( defmt:: Format ) ) ]
201+ #[ cfg_attr( feature = "defmt" , derive( defmt:: Format ) ) ]
202202pub struct Mode {
203203 /// Clock polarity.
204204 pub polarity : Polarity ,
@@ -253,7 +253,7 @@ impl Error for core::convert::Infallible {
253253/// free to define more specific or additional error types. However, by providing
254254/// a mapping to these common SPI errors, generic code can still react to them.
255255#[ derive( Debug , Copy , Clone , Eq , PartialEq , Ord , PartialOrd , Hash ) ]
256- #[ cfg_attr( feature = "defmt-03 " , derive( defmt:: Format ) ) ]
256+ #[ cfg_attr( feature = "defmt" , derive( defmt:: Format ) ) ]
257257#[ non_exhaustive]
258258pub enum ErrorKind {
259259 /// The peripheral receive buffer was overrun.
@@ -318,7 +318,7 @@ impl<T: ErrorType + ?Sized> ErrorType for &mut T {
318318///
319319/// This allows composition of SPI operations into a single bus transaction.
320320#[ derive( Debug , PartialEq , Eq ) ]
321- #[ cfg_attr( feature = "defmt-03 " , derive( defmt:: Format ) ) ]
321+ #[ cfg_attr( feature = "defmt" , derive( defmt:: Format ) ) ]
322322pub enum Operation < ' a , Word : ' static > {
323323 /// Read data into the provided buffer.
324324 ///
0 commit comments