@@ -28,11 +28,11 @@ pub struct Adc<ADC> {
28
28
clocks : Clocks ,
29
29
}
30
30
31
- #[ derive( Clone , Copy , Debug , PartialEq ) ]
32
- #[ allow( non_camel_case_types) ]
33
31
/// ADC sampling time
34
32
///
35
33
/// Options for the sampling time, each is T + 0.5 ADC clock cycles.
34
+ #[ allow( non_camel_case_types) ]
35
+ #[ derive( Clone , Copy , Debug , PartialEq , Eq ) ]
36
36
pub enum SampleTime {
37
37
/// 1.5 cycles sampling time
38
38
T_1 ,
@@ -75,7 +75,7 @@ impl From<SampleTime> for u8 {
75
75
}
76
76
}
77
77
78
- #[ derive( Clone , Copy , Debug , PartialEq ) ]
78
+ #[ derive( Clone , Copy , Debug , PartialEq , Eq ) ]
79
79
/// ADC data register alignment
80
80
pub enum Align {
81
81
/// Right alignment of output data
@@ -169,7 +169,7 @@ adc_pins!(pac::ADC3,
169
169
) ;
170
170
171
171
/// Stored ADC config can be restored using the `Adc::restore_cfg` method
172
- #[ derive( Copy , Clone , Debug , PartialEq , Default ) ]
172
+ #[ derive( Copy , Clone , Debug , PartialEq , Eq , Default ) ]
173
173
pub struct StoredConfig ( SampleTime , Align ) ;
174
174
175
175
macro_rules! adc_hal {
0 commit comments