File tree Expand file tree Collapse file tree 4 files changed +1
-15
lines changed Expand file tree Collapse file tree 4 files changed +1
-15
lines changed Original file line number Diff line number Diff line change @@ -29,7 +29,6 @@ pub mod prelude {
29
29
30
30
pub use crate :: clocks:: ClocksExt ;
31
31
pub use crate :: gpio:: GpioExt ;
32
- pub use crate :: saadc:: SaadcExt ;
33
32
pub use crate :: spim:: SpimExt ;
34
33
pub use crate :: time:: U32Ext ;
35
34
pub use crate :: timer:: TimerExt ;
Original file line number Diff line number Diff line change 1
1
use crate :: {
2
2
gpio:: { Floating , Input } ,
3
- target:: { saadc , SAADC } ,
3
+ target:: SAADC ,
4
4
} ;
5
5
use core:: {
6
6
hint:: unreachable_unchecked,
7
- ops:: Deref ,
8
7
sync:: atomic:: { compiler_fence, Ordering :: SeqCst } ,
9
8
} ;
10
9
use embedded_hal:: adc:: { Channel , OneShot } ;
@@ -19,16 +18,6 @@ pub use crate::target::saadc::{
19
18
// multiple channels should work (See "scan mode" in the datasheet)
20
19
// Issue: https://github.com/nrf-rs/nrf52-hal/issues/82
21
20
22
- pub trait SaadcExt : Deref < Target = saadc:: RegisterBlock > + Sized {
23
- fn constrain ( self ) -> Saadc ;
24
- }
25
-
26
- impl SaadcExt for SAADC {
27
- fn constrain ( self ) -> Saadc {
28
- Saadc :: new ( self , SaadcConfig :: default ( ) )
29
- }
30
- }
31
-
32
21
pub struct Saadc ( SAADC ) ;
33
22
34
23
impl Saadc {
Original file line number Diff line number Diff line change @@ -14,7 +14,6 @@ pub mod prelude {
14
14
pub use crate :: time:: U32Ext ;
15
15
pub use crate :: timer:: TimerExt ;
16
16
pub use crate :: uarte:: UarteExt ;
17
- pub use crate :: saadc:: SaadcExt ;
18
17
}
19
18
20
19
pub use crate :: clocks:: Clocks ;
Original file line number Diff line number Diff line change @@ -14,7 +14,6 @@ pub mod prelude {
14
14
pub use crate :: time:: U32Ext ;
15
15
pub use crate :: timer:: TimerExt ;
16
16
pub use crate :: uarte:: UarteExt ;
17
- pub use crate :: saadc:: SaadcExt ;
18
17
}
19
18
20
19
pub use crate :: clocks:: Clocks ;
You can’t perform that action at this time.
0 commit comments