From a8f6b2f62ac04adb7b00681284332d01b7abbbbc Mon Sep 17 00:00:00 2001 From: Wilfried Chauveau Date: Thu, 21 Dec 2023 17:32:41 +0000 Subject: [PATCH] add missing ValidFunction implementation for DynFunction. This missing impl effectively prevented anyone from using a `Pin<_, DynFunction, _>`. --- rp2040-hal/src/gpio/func.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/rp2040-hal/src/gpio/func.rs b/rp2040-hal/src/gpio/func.rs index 6eb32c188..353180df2 100644 --- a/rp2040-hal/src/gpio/func.rs +++ b/rp2040-hal/src/gpio/func.rs @@ -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),+]);