@@ -4,9 +4,7 @@ use super::{
44 dynamic:: PinModeError , marker, DynamicPin , ErasedPin , Output , PartiallyErasedPin , Pin ,
55} ;
66
7- use embedded_hal_one:: digital:: {
8- ErrorType , InputPin , OutputPin , StatefulOutputPin , ToggleableOutputPin ,
9- } ;
7+ use embedded_hal_one:: digital:: { ErrorType , InputPin , OutputPin , StatefulOutputPin } ;
108
119// Implementations for `Pin`
1210impl < 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
3937 }
4038}
4139
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-
5040impl < const P : char , const N : u8 , MODE > InputPin for Pin < P , N , MODE >
5141where
5242 MODE : marker:: Readable ,
@@ -93,14 +83,6 @@ impl<MODE> StatefulOutputPin for ErasedPin<Output<MODE>> {
9383 }
9484}
9585
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-
10486impl < MODE > InputPin for ErasedPin < MODE >
10587where
10688 MODE : marker:: Readable ,
@@ -147,14 +129,6 @@ impl<const P: char, MODE> StatefulOutputPin for PartiallyErasedPin<P, Output<MOD
147129 }
148130}
149131
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-
158132impl < const P : char , MODE > InputPin for PartiallyErasedPin < P , MODE >
159133where
160134 MODE : marker:: Readable ,
0 commit comments