From 0a4112eb0293ee09aac96026f9fcff17564f4b41 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Robert=20J=C3=B6rdens?= Date: Mon, 22 Jun 2020 22:55:18 +0200 Subject: [PATCH] spi nss: very high speed --- src/main.rs | 20 ++++++++++++++++---- 1 file changed, 16 insertions(+), 4 deletions(-) diff --git a/src/main.rs b/src/main.rs index 1787590..5b8492c 100644 --- a/src/main.rs +++ b/src/main.rs @@ -262,7 +262,10 @@ const APP: () = { .pb10 .into_alternate_af5() .set_speed(hal::gpio::Speed::VeryHigh); - let _spi_nss = gpiob.pb9.into_alternate_af5(); + let _spi_nss = gpiob + .pb9 + .into_alternate_af5() + .set_speed(hal::gpio::Speed::VeryHigh); let config = hal::spi::Config::new(hal::spi::Mode { polarity: hal::spi::Polarity::IdleHigh, @@ -295,7 +298,10 @@ const APP: () = { .pc10 .into_alternate_af6() .set_speed(hal::gpio::Speed::VeryHigh); - let _spi_nss = gpioa.pa15.into_alternate_af6(); + let _spi_nss = gpioa + .pa15 + .into_alternate_af6() + .set_speed(hal::gpio::Speed::VeryHigh); let config = hal::spi::Config::new(hal::spi::Mode { polarity: hal::spi::Polarity::IdleHigh, @@ -328,7 +334,10 @@ const APP: () = { .pe2 .into_alternate_af5() .set_speed(hal::gpio::Speed::VeryHigh); - let _spi_nss = gpioe.pe4.into_alternate_af5(); + let _spi_nss = gpioe + .pe4 + .into_alternate_af5() + .set_speed(hal::gpio::Speed::VeryHigh); let config = hal::spi::Config::new(hal::spi::Mode { polarity: hal::spi::Polarity::IdleHigh, @@ -357,7 +366,10 @@ const APP: () = { .pf7 .into_alternate_af5() .set_speed(hal::gpio::Speed::VeryHigh); - let _spi_nss = gpiof.pf6.into_alternate_af5(); + let _spi_nss = gpiof + .pf6 + .into_alternate_af5() + .set_speed(hal::gpio::Speed::VeryHigh); let config = hal::spi::Config::new(hal::spi::Mode { polarity: hal::spi::Polarity::IdleHigh,