Remove Speed::Input in order to move it into separate PR

This commit is contained in:
Joël Schulz-Ansres 2024-05-22 23:49:48 +02:00
parent 89017d338f
commit 27e8ef6e7e
2 changed files with 2 additions and 5 deletions

View File

@ -265,7 +265,6 @@ impl From<Pull> for vals::Pupdr {
#[derive(Debug, Copy, Clone)]
#[cfg_attr(feature = "defmt", derive(defmt::Format))]
pub enum Speed {
Input,
Low,
Medium,
#[cfg(not(any(syscfg_f0, gpio_v1)))]
@ -279,7 +278,6 @@ impl From<Speed> for vals::Mode {
use Speed::*;
match speed {
Input => vals::Mode::INPUT,
Low => vals::Mode::OUTPUT2MHZ,
Medium => vals::Mode::OUTPUT10MHZ,
VeryHigh => vals::Mode::OUTPUT50MHZ,
@ -293,7 +291,6 @@ impl From<Speed> for vals::Ospeedr {
use Speed::*;
match speed {
Input => vals::Ospeedr::LOWSPEED,
Low => vals::Ospeedr::LOWSPEED,
Medium => vals::Ospeedr::MEDIUMSPEED,
#[cfg(not(syscfg_f0))]

View File

@ -430,7 +430,7 @@ impl<'d, T: Instance> Spi<'d, T, Blocking> {
new_pin!(
miso,
AFType::Input,
Speed::Input,
Speed::VeryHigh,
match config.miso_pullup {
true => Pull::Up,
false => Pull::None,
@ -456,7 +456,7 @@ impl<'d, T: Instance> Spi<'d, T, Blocking> {
new_pin!(
miso,
AFType::Input,
Speed::Input,
Speed::VeryHigh,
match config.miso_pullup {
true => Pull::Up,
false => Pull::None,