@@ -157,7 +157,7 @@ pub struct Analog;
157
157
/// JTAG/SWD mote (type state)
158
158
pub type Debugger = Alternate < 0 , PushPull > ;
159
159
160
- mod sealed {
160
+ mod marker {
161
161
/// Marker trait that show if `ExtiPin` can be implemented
162
162
pub trait Interruptable { }
163
163
/// Marker trait for readable pin modes
@@ -170,16 +170,16 @@ mod sealed {
170
170
pub trait NotAlt { }
171
171
}
172
172
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 { }
183
183
184
184
/// GPIO Pin speed selection
185
185
#[ cfg_attr( feature = "defmt" , derive( defmt:: Format ) ) ]
@@ -205,7 +205,7 @@ pub enum Edge {
205
205
RisingFalling ,
206
206
}
207
207
208
- use sealed :: Interruptable ;
208
+ use marker :: Interruptable ;
209
209
impl < MODE > Interruptable for Output < MODE > { }
210
210
impl Interruptable for Input { }
211
211
@@ -417,7 +417,7 @@ impl<const P: char, const N: u8, MODE> PinExt for Pin<P, N, MODE> {
417
417
418
418
impl < const P : char , const N : u8 , MODE > Pin < P , N , MODE >
419
419
where
420
- MODE : sealed :: OutputSpeed ,
420
+ MODE : marker :: OutputSpeed ,
421
421
{
422
422
/// Set pin speed
423
423
pub fn set_speed ( & mut self , _ospeedr : & mut OSPEEDR < P > , speed : Speed ) {
@@ -439,7 +439,7 @@ where
439
439
440
440
impl < const P : char , const N : u8 , MODE > Pin < P , N , MODE >
441
441
where
442
- MODE : sealed :: Active ,
442
+ MODE : marker :: Active ,
443
443
{
444
444
/// Set the internal pull-up and pull-down resistor
445
445
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>> {
586
586
587
587
impl < const P : char , const N : u8 , MODE > Pin < P , N , MODE >
588
588
where
589
- MODE : sealed :: Readable ,
589
+ MODE : marker :: Readable ,
590
590
{
591
591
/// Is the input pin high?
592
592
#[ inline( always) ]
0 commit comments