Function imxrt_iomuxc::prelude::configure
source · pub fn configure<I: Iomuxc>(pad: &mut I, config: Config)
Expand description
Applies the configuration config
for the supplied pad
configure
lets you specify the pad’s drive strength, speed, pull-up or pull-down
resistors, and other configurations. See Config
for possible configurations.
§Example
use imxrt_iomuxc::{configure, Config, OpenDrain, PullKeeper};
const CONFIG: Config = Config::zero()
.set_open_drain(OpenDrain::Enabled)
.set_pull_keeper(Some(PullKeeper::Pullup100k));
let mut pad = unsafe { GPIO_AD_B0_03::new() };
configure(&mut pad, CONFIG);