Skip to content

Commit

Permalink
Fix small typos in spi.rs
Browse files Browse the repository at this point in the history
  • Loading branch information
bschwind authored and TheZoq2 committed Aug 8, 2020
1 parent 0f23be5 commit 1b32169
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/spi.rs
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,7 @@ impl<REMAP, PINS> Spi<SPI1, REMAP, PINS> {

impl<REMAP, PINS> Spi<SPI2, REMAP, PINS> {
/**
Constructs an SPI instance using SPI1.
Constructs an SPI instance using SPI2.
The pin parameter tuple (sck, miso, mosi) should be `(PB13, PB14, PB15)` configured as `(Alternate<PushPull>, Input<Floating>, Alternate<PushPull>)`.
Expand All @@ -202,7 +202,7 @@ impl<REMAP, PINS> Spi<SPI2, REMAP, PINS> {
#[cfg(any(feature = "high", feature = "connectivity"))]
impl<REMAP, PINS> Spi<SPI3, REMAP, PINS> {
/**
Constructs an SPI instance using SPI1.
Constructs an SPI instance using SPI3.
The pin parameter tuple (sck, miso, mosi) should be `(PB3, PB4, PB5)` or `(PC10, PC11, PC12)` configured as `(Alternate<PushPull>, Input<Floating>, Alternate<PushPull>)`.
Expand Down Expand Up @@ -400,7 +400,7 @@ where
}
}
// Clear OVR set due to dropped received values
// NOTE(read_volatile) see note aboev
// NOTE(read_volatile) see note above
unsafe {
let _ = ptr::read_volatile(&self.spi.dr as *const _ as *const u8);
}
Expand Down

0 comments on commit 1b32169

Please sign in to comment.