You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/spi.rs
+7-7Lines changed: 7 additions & 7 deletions
Original file line number
Diff line number
Diff line change
@@ -2,7 +2,7 @@
2
2
# Serial Peripheral Interface
3
3
To construct the SPI instances, use the `Spi::spiX` functions.
4
4
5
-
The pin parameter is a tuple containing `(sck, miso, mosi)` which should be configured as `(Alternate<PushPull>, Input<Floating>, Alternate<PushPull>)`.
5
+
The pin parameter is a tuple containing `(sck, miso, mosi)` which should be configured as `(Alternate<...>, Input<...>, Alternate<...>)`.
6
6
As some STM32F1xx chips have 5V tolerant SPI pins, it is also possible to configure Sck and Mosi outputs as `Alternate<PushPull>`. Then
7
7
a simple Pull-Up to 5V can be used to use SPI on a 5V bus without a level shifter.
8
8
@@ -50,7 +50,7 @@ use crate::gpio::gpioa::{PA5, PA6, PA7};
Constructs an SPI instance using SPI1 in 8bit dataframe mode.
159
159
160
-
The pin parameter tuple (sck, miso, mosi) should be `(PA5, PA6, PA7)` or `(PB3, PB4, PB5)` configured as `(Alternate<PushPull>, Input<Floating>, Alternate<PushPull>)`.
160
+
The pin parameter tuple (sck, miso, mosi) should be `(PA5, PA6, PA7)` or `(PB3, PB4, PB5)` configured as `(Alternate<...>, Input<...>, Alternate<...>)`.
161
161
162
162
You can also use `NoSck`, `NoMiso` or `NoMosi` if you don't want to use the pins
Constructs an SPI instance using SPI3 in 8bit dataframe mode.
221
221
222
-
The pin parameter tuple (sck, miso, mosi) should be `(PB3, PB4, PB5)` or `(PC10, PC11, PC12)` configured as `(Alternate<PushPull>, Input<Floating>, Alternate<PushPull>)`.
222
+
The pin parameter tuple (sck, miso, mosi) should be `(PB3, PB4, PB5)` or `(PC10, PC11, PC12)` configured as `(Alternate<...>, Input<...>, Alternate<...>)`.
223
223
224
224
You can also use `NoSck`, `NoMiso` or `NoMosi` if you don't want to use the pins
0 commit comments