File tree 5 files changed +8
-0
lines changed
5 files changed +8
-0
lines changed Original file line number Diff line number Diff line change @@ -62,6 +62,10 @@ version = "0.3"
62
62
default-features = false
63
63
version = " 1.0"
64
64
65
+ [dependencies .defmt ]
66
+ version = " 0.3"
67
+ optional = true
68
+
65
69
[dependencies .embedded-hal-async ]
66
70
version = " 0.1.0-alpha.3"
67
71
optional = true
Original file line number Diff line number Diff line change @@ -258,6 +258,7 @@ pub use dma_controller::*;
258
258
pub use transfer:: * ;
259
259
260
260
#[ derive( Debug , Clone , Copy ) ]
261
+ #[ cfg_attr( feature = "defmt" , derive( defmt:: Format ) ) ]
261
262
/// Runtime errors that may occur when dealing with DMA transfers.
262
263
pub enum Error {
263
264
/// Supplied buffers both have lengths > 1 beat, but not equal to each other
Original file line number Diff line number Diff line change @@ -74,6 +74,7 @@ impl Status {
74
74
75
75
/// Errors available for I2C transactions
76
76
#[ derive( Debug , Clone , Copy ) ]
77
+ #[ cfg_attr( feature = "defmt" , derive( defmt:: Format ) ) ]
77
78
pub enum Error {
78
79
BusError ,
79
80
ArbitrationLost ,
Original file line number Diff line number Diff line change @@ -461,6 +461,7 @@ impl TryFrom<Status> for () {
461
461
/// The SPI peripheral only has two error types, buffer overflow and transaction
462
462
/// length error.
463
463
#[ derive( Debug ) ]
464
+ #[ cfg_attr( feature = "defmt" , derive( defmt:: Format ) ) ]
464
465
pub enum Error {
465
466
Overflow ,
466
467
LengthError ,
Original file line number Diff line number Diff line change @@ -85,6 +85,7 @@ bitflags! {
85
85
86
86
/// Errors available for UART transactions
87
87
#[ derive( Debug , Clone , Copy ) ]
88
+ #[ cfg_attr( feature = "defmt" , derive( defmt:: Format ) ) ]
88
89
pub enum Error {
89
90
/// Detected a parity error
90
91
ParityError ,
You can’t perform that action at this time.
0 commit comments