imxrt-hal 0.6.0

Hardware abstraction layer for NXP i.MX RT microcontrollers.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
//! Common IOMUXC driver features for 10xx MCUs.

pub use crate::chip::config::pads;
use crate::ral;

/// Transform the `imxrt-ral` IOMUXC instance into pad objects.
pub fn into_pads(_: ral::iomuxc::IOMUXC) -> pads::Pads {
    // Safety: acquiring pads has the same safety implications
    // as acquiring the IOMUXC instance. The user has already
    // assumed the unsafety.
    unsafe { pads::Pads::new() }
}