Skip to content

Commit 1b32169

Browse files
bschwindTheZoq2
authored andcommitted
Fix small typos in spi.rs
1 parent 0f23be5 commit 1b32169

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/spi.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -176,7 +176,7 @@ impl<REMAP, PINS> Spi<SPI1, REMAP, PINS> {
176176

177177
impl<REMAP, PINS> Spi<SPI2, REMAP, PINS> {
178178
/**
179-
Constructs an SPI instance using SPI1.
179+
Constructs an SPI instance using SPI2.
180180
181181
The pin parameter tuple (sck, miso, mosi) should be `(PB13, PB14, PB15)` configured as `(Alternate<PushPull>, Input<Floating>, Alternate<PushPull>)`.
182182
@@ -202,7 +202,7 @@ impl<REMAP, PINS> Spi<SPI2, REMAP, PINS> {
202202
#[cfg(any(feature = "high", feature = "connectivity"))]
203203
impl<REMAP, PINS> Spi<SPI3, REMAP, PINS> {
204204
/**
205-
Constructs an SPI instance using SPI1.
205+
Constructs an SPI instance using SPI3.
206206
207207
The pin parameter tuple (sck, miso, mosi) should be `(PB3, PB4, PB5)` or `(PC10, PC11, PC12)` configured as `(Alternate<PushPull>, Input<Floating>, Alternate<PushPull>)`.
208208
@@ -400,7 +400,7 @@ where
400400
}
401401
}
402402
// Clear OVR set due to dropped received values
403-
// NOTE(read_volatile) see note aboev
403+
// NOTE(read_volatile) see note above
404404
unsafe {
405405
let _ = ptr::read_volatile(&self.spi.dr as *const _ as *const u8);
406406
}

0 commit comments

Comments
 (0)