Skip to content

Commit

Permalink
add missing ValidFunction implementation for DynFunction.
Browse files Browse the repository at this point in the history
This missing impl effectively prevented anyone from using a
`Pin<_, DynFunction, _>`.
  • Loading branch information
ithinuel committed Dec 21, 2023
1 parent 935c92a commit 7eaf033
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion rp2040-hal/src/gpio/func.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -173,6 +173,7 @@ impl DynFunction {
}
}
}
impl<P: super::pin::PinId> ValidFunction<DynFunction> 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),+]);
Expand Down

0 comments on commit 7eaf033

Please sign in to comment.