Skip to content

Commit bd36c7b

Browse files
committed
Allow some peripherals to work with OD pins
1 parent 3158004 commit bd36c7b

File tree

3 files changed

+212
-959
lines changed

3 files changed

+212
-959
lines changed

src/gpio.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -436,7 +436,7 @@ where
436436
}
437437
}
438438

439-
impl<GPIO, INDEX, MODE> OutputPin for Pin<GPIO, INDEX, Output<MODE>>
439+
impl<GPIO, INDEX, OTYPE> OutputPin for Pin<GPIO, INDEX, Output<OTYPE>>
440440
where
441441
GPIO: Gpio,
442442
INDEX: Index,
@@ -476,7 +476,7 @@ where
476476
}
477477

478478
#[cfg(feature = "unproven")]
479-
impl<GPIO, INDEX, MODE> StatefulOutputPin for Pin<GPIO, INDEX, Output<MODE>>
479+
impl<GPIO, INDEX, OTYPE> StatefulOutputPin for Pin<GPIO, INDEX, Output<OTYPE>>
480480
where
481481
GPIO: Gpio,
482482
INDEX: Index,
@@ -492,7 +492,7 @@ where
492492
}
493493

494494
#[cfg(feature = "unproven")]
495-
impl<GPIO, INDEX, MODE> toggleable::Default for Pin<GPIO, INDEX, Output<MODE>>
495+
impl<GPIO, INDEX, OTYPE> toggleable::Default for Pin<GPIO, INDEX, Output<OTYPE>>
496496
where
497497
GPIO: Gpio,
498498
INDEX: Index,
@@ -582,7 +582,7 @@ macro_rules! af {
582582

583583
paste::paste! {
584584
#[doc = "Alternate function " $i " (type state)"]
585-
pub type $AFi<MODE> = Alternate<$Ui, MODE>;
585+
pub type $AFi<OTYPE> = Alternate<$Ui, OTYPE>;
586586
}
587587

588588
impl<GPIO, INDEX, MODE> Pin<GPIO, INDEX, MODE>

0 commit comments

Comments
 (0)