From 06644326da394dbad34f3bc4686125630d3f870f Mon Sep 17 00:00:00 2001 From: Brian Schwind Date: Thu, 6 Aug 2020 12:33:08 +0900 Subject: [PATCH] Fix small typos in spi.rs --- src/spi.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/spi.rs b/src/spi.rs index b7363ac8..9a4c8359 100644 --- a/src/spi.rs +++ b/src/spi.rs @@ -176,7 +176,7 @@ impl Spi { impl Spi { /** - 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, Input, Alternate)`. @@ -202,7 +202,7 @@ impl Spi { #[cfg(any(feature = "high", feature = "connectivity"))] impl Spi { /** - 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, Input, Alternate)`. @@ -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); }