Implement NonPwmPinMode for gpio::Disabled

Fixes #397
This commit is contained in:
Florian Uekermann 2022-08-01 15:20:54 +02:00
parent b1fcb7eff8
commit 03e791ab31

View file

@ -80,9 +80,9 @@ use core::marker::PhantomData;
use crate::{ use crate::{
gpio::{ gpio::{
bank0::*, FunctionClock, FunctionI2C, FunctionPio0, FunctionPio1, FunctionPwm, FunctionSpi, bank0::*, Disabled, DisabledConfig, FunctionClock, FunctionI2C, FunctionPio0, FunctionPio1,
FunctionUart, FunctionUsbAux, FunctionXip, Input, InputConfig, Output, OutputConfig, Pin, FunctionPwm, FunctionSpi, FunctionUart, FunctionUsbAux, FunctionXip, Input, InputConfig,
PinId, PinMode, ValidPinMode, Output, OutputConfig, Pin, PinId, PinMode, ValidPinMode,
}, },
resets::SubsystemReset, resets::SubsystemReset,
typelevel::Sealed, typelevel::Sealed,
@ -509,6 +509,7 @@ impl NonPwmPinMode for FunctionUsbAux {}
impl NonPwmPinMode for FunctionXip {} impl NonPwmPinMode for FunctionXip {}
impl<C: InputConfig> NonPwmPinMode for Input<C> {} impl<C: InputConfig> NonPwmPinMode for Input<C> {}
impl<C: OutputConfig> NonPwmPinMode for Output<C> {} impl<C: OutputConfig> NonPwmPinMode for Output<C> {}
impl<C: DisabledConfig> NonPwmPinMode for Disabled<C> {}
/// Stores the attached gpio pin. /// Stores the attached gpio pin.
/// ///