Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix small typos in spi.rs #253

Merged
merged 1 commit into from
Aug 8, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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