@@ -4,9 +4,7 @@ use super::{
4
4
} ;
5
5
6
6
use embedded_hal:: digital:: { ErrorKind , ErrorType } ;
7
- use embedded_hal:: digital:: {
8
- InputPin , OutputPin , StatefulOutputPin , ToggleableOutputPin ,
9
- } ;
7
+ use embedded_hal:: digital:: { InputPin , OutputPin , StatefulOutputPin } ;
10
8
11
9
/// Error type for GPIO
12
10
#[ derive( Clone , Copy , Debug , PartialEq ) ]
@@ -60,11 +58,6 @@ impl<const P: char, const N: u8, MODE> StatefulOutputPin
60
58
fn is_set_low ( & mut self ) -> Result < bool , Self :: Error > {
61
59
Ok ( self . _is_set_low ( ) )
62
60
}
63
- }
64
-
65
- impl < const P : char , const N : u8 , MODE > ToggleableOutputPin
66
- for Pin < P , N , Output < MODE > >
67
- {
68
61
#[ inline( always) ]
69
62
fn toggle ( & mut self ) -> Result < ( ) , Self :: Error > {
70
63
self . toggle ( ) ;
@@ -117,9 +110,6 @@ impl<MODE> StatefulOutputPin for ErasedPin<Output<MODE>> {
117
110
fn is_set_low ( & mut self ) -> Result < bool , Self :: Error > {
118
111
Ok ( ErasedPin :: is_set_low ( self ) )
119
112
}
120
- }
121
-
122
- impl < MODE > ToggleableOutputPin for ErasedPin < Output < MODE > > {
123
113
#[ inline( always) ]
124
114
fn toggle ( & mut self ) -> Result < ( ) , Self :: Error > {
125
115
self . toggle ( ) ;
@@ -174,11 +164,6 @@ impl<const P: char, MODE> StatefulOutputPin
174
164
fn is_set_low ( & mut self ) -> Result < bool , Self :: Error > {
175
165
Ok ( PartiallyErasedPin :: is_set_low ( self ) )
176
166
}
177
- }
178
-
179
- impl < const P : char , MODE > ToggleableOutputPin
180
- for PartiallyErasedPin < P , Output < MODE > >
181
- {
182
167
#[ inline( always) ]
183
168
fn toggle ( & mut self ) -> Result < ( ) , Self :: Error > {
184
169
self . toggle ( ) ;
0 commit comments