mirror of
https://github.com/embassy-rs/embassy.git
synced 2024-11-28 17:52:28 +00:00
Remove Speed::Input in order to move it into separate PR
This commit is contained in:
parent
89017d338f
commit
27e8ef6e7e
@ -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))]
|
||||
|
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user