//! Drivers for iMXRT1010 MCUs. #![no_std] pub use ral_registers::{Instance, modify_reg, read_reg, write_reg}; mod rt; pub use rt::*; pub mod iomuxc; /// Clock control module. pub mod ccm { pub use imxrt_drivers_ccm_10xx::ahb::pll6_500mhz::*; pub use imxrt_drivers_ccm_10xx::ccm::{ CCM, LowPowerMode, ahb_clk, clock_gate, flexspi1_clk_root_pll2 as flexspi1_clk, ipg_clk, low_power_mode, lpi2c_clk, lpspi_clk, perclk_clk, set_low_power_mode, uart_clk, }; pub use imxrt_drivers_ccm_10xx::ccm_analog::{CCM_ANALOG, pll2, pll3}; /// Peripheral clock 2. pub mod periph_clk2 { pub use imxrt_drivers_ccm_10xx::ccm::periph_clk2::{Selection, selection, set_selection}; } pub use imxrt_drivers_ccm_10xx::ccm::pre_periph_clk_pll6 as pre_periph_clk; pub use imxrt_drivers_ccm_10xx::ccm_analog::pll6_500mhz as pll6; pub mod gates { use super::clock_gate::Locator::{self, *}; pub const FLEXSPI: Locator = Ccgr6Cg05; } pub use imxrt_drivers_ccm_10xx::ral; } pub use imxrt_drivers_dcdc as dcdc; pub use imxrt_drivers_flexspi as flexspi; pub use imxrt_drivers_gpio as gpio; pub use imxrt_drivers_lpspi as lpspi; pub use imxrt_drivers_pit as pit; pub use imxrt_drivers_rtwdog as rtwdog; /// Peripheral instances. pub mod instances { ral_registers::instances! { // Safety: The reference manual confirms there are register // blocks at this address matching this shape. unsafe { /// Access CCM registers. pub ccm = 0x400F_C000; /// Access CCM\_ANALOG registers. pub ccm_analog = 0x400D_8000; pub dcdc = 0x4008_0000; pub gpio1 = 0x401b_8000; pub gpio5 = 0x400c_0000; pub gpio2 = 0x4200_0000; pub iomuxc = 0x401F_8000; pub flexspi = 0x400A_0000; pub pit = 0x4008_4000; pub lpspi1 = 0x4019_4000; pub lpspi2 = 0x4019_8000; pub wdog3 = 0x400B_C000; } } }