From 7cd856b1796025e50eaade884ea66c080ddc8e96 Mon Sep 17 00:00:00 2001 From: Ian McIntyre Date: Mon, 8 Apr 2024 12:36:00 -0400 Subject: [PATCH] Support open drain cfg for 1050 Demonstrated with a failing unit test. --- src/config.rs | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/config.rs b/src/config.rs index 9d537db..41b8999 100644 --- a/src/config.rs +++ b/src/config.rs @@ -367,7 +367,12 @@ impl Config { /// the 1170. See the issue tracker for more details. /// https://github.com/imxrt-rs/imxrt-iomuxc/issues/28 pub(crate) fn set_open_drain(_pad: &mut I) { - #[cfg(any(feature = "imxrt1010", feature = "imxrt1020", feature = "imxrt1060"))] + #[cfg(any( + feature = "imxrt1010", + feature = "imxrt1020", + feature = "imxrt1050", + feature = "imxrt1060" + ))] configure(_pad, Config::modify().set_open_drain(OpenDrain::Enabled)); }