Skip to content

Commit

Permalink
Support open drain cfg for 1050
Browse files Browse the repository at this point in the history
Demonstrated with a failing unit test.
  • Loading branch information
mciantyre authored and Hatim Thayyil committed Nov 29, 2024
1 parent a5d7f77 commit 7cd856b
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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<I: Iomuxc>(_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));
}

Expand Down

0 comments on commit 7cd856b

Please sign in to comment.