@@ -85,7 +85,7 @@ use crate::pac::P1;
85
85
#[ cfg( feature = "5340-net" ) ]
86
86
use crate :: pac:: P1_NS as P1 ;
87
87
88
- use crate :: hal:: digital:: v2:: { InputPin , IoPin , OutputPin , PinState , StatefulOutputPin } ;
88
+ use crate :: hal:: digital:: v2:: { InputPin , OutputPin , StatefulOutputPin } ;
89
89
use void:: Void ;
90
90
91
91
impl < MODE > Pin < MODE > {
@@ -360,19 +360,6 @@ impl InputPin for Pin<Output<OpenDrainIO>> {
360
360
}
361
361
}
362
362
363
- impl IoPin < Self , Self > for Pin < Output < OpenDrainIO > > {
364
- type Error = Void ;
365
-
366
- fn into_input_pin ( self ) -> Result < Self , Self :: Error > {
367
- Ok ( self )
368
- }
369
-
370
- fn into_output_pin ( mut self , state : PinState ) -> Result < Self , Self :: Error > {
371
- self . set_state ( state) ?;
372
- Ok ( self )
373
- }
374
- }
375
-
376
363
impl < MODE > OutputPin for Pin < Output < MODE > > {
377
364
type Error = Void ;
378
365
@@ -474,7 +461,7 @@ macro_rules! gpio {
474
461
$PX
475
462
} ;
476
463
477
- use crate :: hal:: digital:: v2:: { InputPin , IoPin , OutputPin , PinState , StatefulOutputPin } ;
464
+ use crate :: hal:: digital:: v2:: { OutputPin , StatefulOutputPin , InputPin } ;
478
465
use void:: Void ;
479
466
480
467
@@ -699,19 +686,6 @@ macro_rules! gpio {
699
686
}
700
687
}
701
688
702
- impl IoPin <Self , Self > for $PXi<Output <OpenDrainIO >> {
703
- type Error = Void ;
704
-
705
- fn into_input_pin( self ) -> Result <Self , Self :: Error > {
706
- Ok ( self )
707
- }
708
-
709
- fn into_output_pin( mut self , state: PinState ) -> Result <Self , Self :: Error > {
710
- self . set_state( state) ?;
711
- Ok ( self )
712
- }
713
- }
714
-
715
689
impl <MODE > From <$PXi<MODE >> for Pin <MODE > {
716
690
fn from( value: $PXi<MODE >) -> Self {
717
691
value. degrade( )
0 commit comments