@@ -157,7 +157,7 @@ pub struct Analog;
157157/// JTAG/SWD mote (type state)
158158pub type Debugger = Alternate < 0 , PushPull > ;
159159
160- mod sealed {
160+ mod marker {
161161 /// Marker trait that show if `ExtiPin` can be implemented
162162 pub trait Interruptable { }
163163 /// Marker trait for readable pin modes
@@ -170,16 +170,16 @@ mod sealed {
170170 pub trait NotAlt { }
171171}
172172
173- impl sealed :: Readable for Input { }
174- impl sealed :: Readable for Output < OpenDrain > { }
175- impl sealed :: Active for Input { }
176- impl < Otype > sealed :: OutputSpeed for Output < Otype > { }
177- impl < const A : u8 , Otype > sealed :: OutputSpeed for Alternate < A , Otype > { }
178- impl < Otype > sealed :: Active for Output < Otype > { }
179- impl < const A : u8 , Otype > sealed :: Active for Alternate < A , Otype > { }
180- impl sealed :: NotAlt for Input { }
181- impl < Otype > sealed :: NotAlt for Output < Otype > { }
182- impl sealed :: NotAlt for Analog { }
173+ impl marker :: Readable for Input { }
174+ impl marker :: Readable for Output < OpenDrain > { }
175+ impl marker :: Active for Input { }
176+ impl < Otype > marker :: OutputSpeed for Output < Otype > { }
177+ impl < const A : u8 , Otype > marker :: OutputSpeed for Alternate < A , Otype > { }
178+ impl < Otype > marker :: Active for Output < Otype > { }
179+ impl < const A : u8 , Otype > marker :: Active for Alternate < A , Otype > { }
180+ impl marker :: NotAlt for Input { }
181+ impl < Otype > marker :: NotAlt for Output < Otype > { }
182+ impl marker :: NotAlt for Analog { }
183183
184184/// GPIO Pin speed selection
185185#[ cfg_attr( feature = "defmt" , derive( defmt:: Format ) ) ]
@@ -205,7 +205,7 @@ pub enum Edge {
205205 RisingFalling ,
206206}
207207
208- use sealed :: Interruptable ;
208+ use marker :: Interruptable ;
209209impl < MODE > Interruptable for Output < MODE > { }
210210impl Interruptable for Input { }
211211
@@ -417,7 +417,7 @@ impl<const P: char, const N: u8, MODE> PinExt for Pin<P, N, MODE> {
417417
418418impl < const P : char , const N : u8 , MODE > Pin < P , N , MODE >
419419where
420- MODE : sealed :: OutputSpeed ,
420+ MODE : marker :: OutputSpeed ,
421421{
422422 /// Set pin speed
423423 pub fn set_speed ( & mut self , _ospeedr : & mut OSPEEDR < P > , speed : Speed ) {
@@ -439,7 +439,7 @@ where
439439
440440impl < const P : char , const N : u8 , MODE > Pin < P , N , MODE >
441441where
442- MODE : sealed :: Active ,
442+ MODE : marker :: Active ,
443443{
444444 /// Set the internal pull-up and pull-down resistor
445445 pub fn set_internal_resistor ( & mut self , _pupdr : & mut PUPDR < P > , resistor : Pull ) {
@@ -586,7 +586,7 @@ impl<const P: char, const N: u8, MODE> Pin<P, N, Output<MODE>> {
586586
587587impl < const P : char , const N : u8 , MODE > Pin < P , N , MODE >
588588where
589- MODE : sealed :: Readable ,
589+ MODE : marker :: Readable ,
590590{
591591 /// Is the input pin high?
592592 #[ inline( always) ]
0 commit comments