diff --git a/rp2040-hal/src/gpio/func.rs b/rp2040-hal/src/gpio/func.rs index 6eb32c188..4a774fffc 100644 --- a/rp2040-hal/src/gpio/func.rs +++ b/rp2040-hal/src/gpio/func.rs @@ -2,7 +2,7 @@ use core::marker::PhantomData; use paste::paste; -use super::pin::DynBankId; +use super::{pin::DynBankId, DynPinId}; pub(crate) mod func_sealed { use super::DynFunction; @@ -173,6 +173,7 @@ impl DynFunction { } } } +impl ValidFunction for P {} macro_rules! pin_valid_func { ($bank:ident as $prefix:ident, [$head:ident $(, $func:ident)*], [$($name:tt),+]) => { pin_valid_func!($bank as $prefix, [$($func),*], [$($name),+]);