Skip to content

Commit fcd8969

Browse files
authored
Swap QSPI pins and remove conflicting/wrong implementations (#283)
1 parent 1ebf007 commit fcd8969

File tree

1 file changed

+2
-48
lines changed

1 file changed

+2
-48
lines changed

src/qspi.rs

Lines changed: 2 additions & 48 deletions
Original file line numberDiff line numberDiff line change
@@ -12,16 +12,6 @@ use crate::gpio::{
1212
gpiod::{PD3, PD4, PD5, PD6, PD7},
1313
};
1414

15-
#[cfg(any(
16-
feature = "stm32l412",
17-
feature = "stm32l422",
18-
feature = "stm32l432",
19-
feature = "stm32l442",
20-
feature = "stm32l452",
21-
feature = "stm32l462",
22-
))]
23-
use crate::gpio::gpiob::PB2;
24-
2515
#[cfg(any(
2616
feature = "stm32l476",
2717
feature = "stm32l486",
@@ -712,8 +702,8 @@ pins!(
712702
10,
713703
CLK: [PE10, PB10],
714704
nCS: [PE11, PB11],
715-
IO0: [PE12, PB0],
716-
IO1: [PE13, PB1],
705+
IO0: [PE12, PB1],
706+
IO1: [PE13, PB0],
717707
IO2: [PE14, PA7],
718708
IO3: [PE15, PA6]
719709
);
@@ -730,42 +720,6 @@ pins!(
730720
IO3: [PD7]
731721
);
732722

733-
#[cfg(any(
734-
feature = "stm32l412",
735-
feature = "stm32l422",
736-
feature = "stm32l432",
737-
feature = "stm32l442",
738-
feature = "stm32l452",
739-
feature = "stm32l462",
740-
))]
741-
impl IO0Pin<QUADSPI> for PB1<Alternate<PushPull, 10>> {
742-
fn set_speed(self, speed: Speed) -> Self {
743-
self.set_speed(speed)
744-
}
745-
}
746-
#[cfg(any(
747-
feature = "stm32l412",
748-
feature = "stm32l422",
749-
feature = "stm32l432",
750-
feature = "stm32l442",
751-
feature = "stm32l452",
752-
feature = "stm32l462",
753-
))]
754-
impl private::Sealed for PB2<Alternate<PushPull, 10>> {}
755-
#[cfg(any(
756-
feature = "stm32l412",
757-
feature = "stm32l422",
758-
feature = "stm32l432",
759-
feature = "stm32l442",
760-
feature = "stm32l452",
761-
feature = "stm32l462",
762-
))]
763-
impl IO1Pin<QUADSPI> for PB2<Alternate<PushPull, 10>> {
764-
fn set_speed(self, speed: Speed) -> Self {
765-
self.set_speed(speed)
766-
}
767-
}
768-
769723
#[cfg(any(
770724
feature = "stm32l476",
771725
feature = "stm32l486",

0 commit comments

Comments
 (0)