@@ -281,15 +281,15 @@ impl sealed::Conjure for (Lcd<SubBank1>, Lcd<SubBank2>, Lcd<SubBank3>, Lcd<SubBa
281
281
/// # Example types that implement `ChipSelectPins`
282
282
///
283
283
/// Wrapped single pins:
284
- /// * `ChipSelect1<PD7<Alternate<AF12 >>>`
285
- /// * `ChipSelect2<PG9<Alternate<AF12 >>>`
286
- /// * `ChipSelect3<PG10<Alternate<AF12 >>>`
287
- /// * `ChipSelect4<PG12<Alternate<AF12 >>>`
284
+ /// * `ChipSelect1<PD7<Alternate<12 >>>`
285
+ /// * `ChipSelect2<PG9<Alternate<12 >>>`
286
+ /// * `ChipSelect3<PG10<Alternate<12 >>>`
287
+ /// * `ChipSelect4<PG12<Alternate<12 >>>`
288
288
///
289
289
/// Tuples of wrapped pins:
290
- /// * `(ChipSelect1<PD7<Alternate<AF12 >>>, ChipSelect2<PG9<Alternate<AF12 >>>)`
291
- /// * `(ChipSelect1<PD7<Alternate<AF12 >>>, ChipSelect4<PG4<Alternate<AF12 >>>)`
292
- /// * `(ChipSelect1<PD7<Alternate<AF12 >>>, ChipSelect2<PG9<Alternate<AF12 >>>, ChipSelect3<PG10<Alternate<AF12 >>>, ChipSelect4<PG12<Alternate<AF12 >>>)`
290
+ /// * `(ChipSelect1<PD7<Alternate<12 >>>, ChipSelect2<PG9<Alternate<12 >>>)`
291
+ /// * `(ChipSelect1<PD7<Alternate<12 >>>, ChipSelect4<PG4<Alternate<12 >>>)`
292
+ /// * `(ChipSelect1<PD7<Alternate<12 >>>, ChipSelect2<PG9<Alternate<12 >>>, ChipSelect3<PG10<Alternate<12 >>>, ChipSelect4<PG12<Alternate<12 >>>)`
293
293
pub trait ChipSelectPins : sealed:: Sealed {
294
294
/// One, two, three, or four `Lcd<_>` objects associated with the sub-bank(s) that these pin(s)
295
295
/// control
@@ -605,10 +605,10 @@ mod common_pins {
605
605
} ;
606
606
use crate :: gpio:: gpiof:: { PF0 , PF1 , PF12 , PF13 , PF14 , PF15 , PF2 , PF3 , PF4 , PF5 } ;
607
607
use crate :: gpio:: gpiog:: { PG0 , PG1 , PG10 , PG12 , PG13 , PG2 , PG3 , PG4 , PG5 , PG9 } ;
608
- use crate :: gpio:: { Alternate , AF12 } ;
608
+ use crate :: gpio:: Alternate ;
609
609
610
610
// All FSMC/FMC pins use AF12
611
- type FmcAlternate = Alternate < AF12 > ;
611
+ type FmcAlternate = Alternate < 12 > ;
612
612
613
613
impl PinD2 for PD0 < FmcAlternate > { }
614
614
impl PinD3 for PD1 < FmcAlternate > { }
@@ -687,7 +687,7 @@ mod common_pins {
687
687
impl Sealed for PG12 < FmcAlternate > { }
688
688
impl PinAddress for PG13 < FmcAlternate > { }
689
689
impl Sealed for PG13 < FmcAlternate > { }
690
- // PG14<Alternate<AF12 > can be used as address 25 (A25), but that pin is not available here.
690
+ // PG14<Alternate<12 > can be used as address 25 (A25), but that pin is not available here.
691
691
// Because external addresses are in units of 16 bits, external address line 25 can never
692
692
// be high. The internal memory address would overflow into the next sub-bank.
693
693
@@ -725,39 +725,39 @@ mod extra_pins {
725
725
use crate :: gpio:: gpiob:: { PB12 , PB14 } ;
726
726
use crate :: gpio:: gpioc:: { PC11 , PC12 , PC2 , PC3 , PC4 , PC5 , PC6 } ;
727
727
use crate :: gpio:: gpiod:: PD2 ;
728
- use crate :: gpio:: { Alternate , AF10 , AF12 } ;
728
+ use crate :: gpio:: Alternate ;
729
729
730
730
// Most FSMC/FMC pins use AF12, but a few use AF10
731
- type FmcAlternate = Alternate < AF12 > ;
731
+ type FmcAlternate = Alternate < 12 > ;
732
732
733
733
impl PinD4 for PA2 < FmcAlternate > { }
734
734
impl PinD5 for PA3 < FmcAlternate > { }
735
735
impl PinD6 for PA4 < FmcAlternate > { }
736
736
impl PinD7 for PA5 < FmcAlternate > { }
737
737
impl PinD13 for PB12 < FmcAlternate > { }
738
- impl PinD0 for PB14 < Alternate < AF10 > > { }
738
+ impl PinD0 for PB14 < Alternate < 10 > > { }
739
739
impl PinWriteEnable for PC2 < FmcAlternate > { }
740
740
impl PinAddress for PC3 < FmcAlternate > { }
741
741
impl Sealed for PC3 < FmcAlternate > { }
742
742
impl PinChipSelect4 for PC4 < FmcAlternate > { }
743
743
impl Sealed for PC4 < FmcAlternate > { }
744
744
impl PinReadEnable for PC5 < FmcAlternate > { }
745
- impl PinD1 for PC6 < Alternate < AF10 > > { }
746
- impl PinD2 for PC11 < Alternate < AF10 > > { }
747
- impl PinD3 for PC12 < Alternate < AF10 > > { }
748
- impl PinWriteEnable for PD2 < Alternate < AF10 > > { }
745
+ impl PinD1 for PC6 < Alternate < 10 > > { }
746
+ impl PinD2 for PC11 < Alternate < 10 > > { }
747
+ impl PinD3 for PC12 < Alternate < 10 > > { }
748
+ impl PinWriteEnable for PD2 < Alternate < 10 > > { }
749
749
750
750
// Sealed trait boilerplate
751
751
impl Sealed for PA2 < FmcAlternate > { }
752
752
impl Sealed for PA3 < FmcAlternate > { }
753
753
impl Sealed for PA4 < FmcAlternate > { }
754
754
impl Sealed for PA5 < FmcAlternate > { }
755
755
impl Sealed for PB12 < FmcAlternate > { }
756
- impl Sealed for PB14 < Alternate < AF10 > > { }
756
+ impl Sealed for PB14 < Alternate < 10 > > { }
757
757
impl Sealed for PC2 < FmcAlternate > { }
758
758
impl Sealed for PC5 < FmcAlternate > { }
759
- impl Sealed for PC6 < Alternate < AF10 > > { }
760
- impl Sealed for PC11 < Alternate < AF10 > > { }
761
- impl Sealed for PC12 < Alternate < AF10 > > { }
762
- impl Sealed for PD2 < Alternate < AF10 > > { }
759
+ impl Sealed for PC6 < Alternate < 10 > > { }
760
+ impl Sealed for PC11 < Alternate < 10 > > { }
761
+ impl Sealed for PC12 < Alternate < 10 > > { }
762
+ impl Sealed for PD2 < Alternate < 10 > > { }
763
763
}
0 commit comments