Browse Source

Merge pull request #57 from cillian64/typo

Fix typo in SPI example
trying.tmp
Daniel Egger 3 years ago committed by GitHub
parent
commit
0420673374
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      src/spi.rs

2
src/spi.rs

@ -22,7 +22,7 @@
//! // Configure pins for SPI
//! let sck = gpioa.pa5.into_alternate_af0(cs);
//! let miso = gpioa.pa6.into_alternate_af0(cs);
//! let mosi = gpioa.pa7.into_alternate_af0()cs;
//! let mosi = gpioa.pa7.into_alternate_af0(cs);
//!
//! // Configure SPI with 1MHz rate
//! let mut spi = Spi::spi1(p.SPI1, (sck, miso, mosi), Mode {

Loading…
Cancel
Save