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); }