@@ -4,9 +4,7 @@ use super::{
4
4
dynamic:: PinModeError , marker, DynamicPin , ErasedPin , Output , PartiallyErasedPin , Pin ,
5
5
} ;
6
6
7
- use embedded_hal_one:: digital:: {
8
- ErrorType , InputPin , OutputPin , StatefulOutputPin , ToggleableOutputPin ,
9
- } ;
7
+ use embedded_hal_one:: digital:: { ErrorType , InputPin , OutputPin , StatefulOutputPin } ;
10
8
11
9
// Implementations for `Pin`
12
10
impl < const P : char , const N : u8 , MODE > ErrorType for Pin < P , N , MODE > {
@@ -39,14 +37,6 @@ impl<const P: char, const N: u8, MODE> StatefulOutputPin for Pin<P, N, Output<MO
39
37
}
40
38
}
41
39
42
- impl < const P : char , const N : u8 , MODE > ToggleableOutputPin for Pin < P , N , Output < MODE > > {
43
- #[ inline( always) ]
44
- fn toggle ( & mut self ) -> Result < ( ) , Self :: Error > {
45
- self . toggle ( ) ;
46
- Ok ( ( ) )
47
- }
48
- }
49
-
50
40
impl < const P : char , const N : u8 , MODE > InputPin for Pin < P , N , MODE >
51
41
where
52
42
MODE : marker:: Readable ,
@@ -93,14 +83,6 @@ impl<MODE> StatefulOutputPin for ErasedPin<Output<MODE>> {
93
83
}
94
84
}
95
85
96
- impl < MODE > ToggleableOutputPin for ErasedPin < Output < MODE > > {
97
- #[ inline( always) ]
98
- fn toggle ( & mut self ) -> Result < ( ) , Self :: Error > {
99
- self . toggle ( ) ;
100
- Ok ( ( ) )
101
- }
102
- }
103
-
104
86
impl < MODE > InputPin for ErasedPin < MODE >
105
87
where
106
88
MODE : marker:: Readable ,
@@ -147,14 +129,6 @@ impl<const P: char, MODE> StatefulOutputPin for PartiallyErasedPin<P, Output<MOD
147
129
}
148
130
}
149
131
150
- impl < const P : char , MODE > ToggleableOutputPin for PartiallyErasedPin < P , Output < MODE > > {
151
- #[ inline( always) ]
152
- fn toggle ( & mut self ) -> Result < ( ) , Self :: Error > {
153
- self . toggle ( ) ;
154
- Ok ( ( ) )
155
- }
156
- }
157
-
158
132
impl < const P : char , MODE > InputPin for PartiallyErasedPin < P , MODE >
159
133
where
160
134
MODE : marker:: Readable ,
0 commit comments