File tree Expand file tree Collapse file tree 1 file changed +6
-0
lines changed Expand file tree Collapse file tree 1 file changed +6
-0
lines changed Original file line number Diff line number Diff line change @@ -251,6 +251,8 @@ impl<Otype> marker::Active for Output<Otype> {}
251
251
impl < Otype , const AF : u8 > marker:: Active for Alternate < Otype , AF > { }
252
252
253
253
/// Slew rate configuration
254
+ #[ derive( Copy , Clone , PartialEq , Eq ) ]
255
+ #[ cfg_attr( feature = "defmt" , derive( defmt:: Format ) ) ]
254
256
pub enum Speed {
255
257
/// Low speed
256
258
Low ,
@@ -261,6 +263,8 @@ pub enum Speed {
261
263
}
262
264
263
265
/// Internal pull-up and pull-down resistor configuration
266
+ #[ derive( Copy , Clone , PartialEq , Eq ) ]
267
+ #[ cfg_attr( feature = "defmt" , derive( defmt:: Format ) ) ]
264
268
pub enum Resistor {
265
269
/// Floating
266
270
Floating ,
@@ -271,6 +275,8 @@ pub enum Resistor {
271
275
}
272
276
273
277
/// GPIO interrupt trigger edge selection
278
+ #[ derive( Copy , Clone , PartialEq , Eq ) ]
279
+ #[ cfg_attr( feature = "defmt" , derive( defmt:: Format ) ) ]
274
280
pub enum Edge {
275
281
/// Rising edge of voltage
276
282
Rising ,
You can’t perform that action at this time.
0 commit comments