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)] | #[derive(Debug, Copy, Clone)] | ||||||
| #[cfg_attr(feature = "defmt", derive(defmt::Format))] | #[cfg_attr(feature = "defmt", derive(defmt::Format))] | ||||||
| pub enum Speed { | pub enum Speed { | ||||||
|     Input, |  | ||||||
|     Low, |     Low, | ||||||
|     Medium, |     Medium, | ||||||
|     #[cfg(not(any(syscfg_f0, gpio_v1)))] |     #[cfg(not(any(syscfg_f0, gpio_v1)))] | ||||||
| @ -279,7 +278,6 @@ impl From<Speed> for vals::Mode { | |||||||
|         use Speed::*; |         use Speed::*; | ||||||
| 
 | 
 | ||||||
|         match speed { |         match speed { | ||||||
|             Input => vals::Mode::INPUT, |  | ||||||
|             Low => vals::Mode::OUTPUT2MHZ, |             Low => vals::Mode::OUTPUT2MHZ, | ||||||
|             Medium => vals::Mode::OUTPUT10MHZ, |             Medium => vals::Mode::OUTPUT10MHZ, | ||||||
|             VeryHigh => vals::Mode::OUTPUT50MHZ, |             VeryHigh => vals::Mode::OUTPUT50MHZ, | ||||||
| @ -293,7 +291,6 @@ impl From<Speed> for vals::Ospeedr { | |||||||
|         use Speed::*; |         use Speed::*; | ||||||
| 
 | 
 | ||||||
|         match speed { |         match speed { | ||||||
|             Input => vals::Ospeedr::LOWSPEED, |  | ||||||
|             Low => vals::Ospeedr::LOWSPEED, |             Low => vals::Ospeedr::LOWSPEED, | ||||||
|             Medium => vals::Ospeedr::MEDIUMSPEED, |             Medium => vals::Ospeedr::MEDIUMSPEED, | ||||||
|             #[cfg(not(syscfg_f0))] |             #[cfg(not(syscfg_f0))] | ||||||
|  | |||||||
| @ -430,7 +430,7 @@ impl<'d, T: Instance> Spi<'d, T, Blocking> { | |||||||
|             new_pin!( |             new_pin!( | ||||||
|                 miso, |                 miso, | ||||||
|                 AFType::Input, |                 AFType::Input, | ||||||
|                 Speed::Input, |                 Speed::VeryHigh, | ||||||
|                 match config.miso_pullup { |                 match config.miso_pullup { | ||||||
|                     true => Pull::Up, |                     true => Pull::Up, | ||||||
|                     false => Pull::None, |                     false => Pull::None, | ||||||
| @ -456,7 +456,7 @@ impl<'d, T: Instance> Spi<'d, T, Blocking> { | |||||||
|             new_pin!( |             new_pin!( | ||||||
|                 miso, |                 miso, | ||||||
|                 AFType::Input, |                 AFType::Input, | ||||||
|                 Speed::Input, |                 Speed::VeryHigh, | ||||||
|                 match config.miso_pullup { |                 match config.miso_pullup { | ||||||
|                     true => Pull::Up, |                     true => Pull::Up, | ||||||
|                     false => Pull::None, |                     false => Pull::None, | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user