#![allow(non_camel_case_types)]
#[macro_use]
mod macros;
pub mod gpio;
pub mod i2c;
pub mod pin_config;
pub mod pwm;
pub mod spi;
pub mod uart;
pub struct Alt0;
pub struct Alt1;
pub struct Alt2;
pub struct Alt3;
pub struct Alt4;
pub struct Alt5;
pub struct Alt6;
pub struct Alt7;
pub struct Alt8;
pub struct Alt9;
pub struct IOMUXC {
pub gpio_b0_00: gpio::GPIO_B0_00<Alt5>,
pub gpio_b0_01: gpio::GPIO_B0_01<Alt5>,
pub gpio_b0_02: gpio::GPIO_B0_02<Alt5>,
pub gpio_b0_03: gpio::GPIO_B0_03<Alt5>,
pub gpio_b0_10: gpio::GPIO_B0_10<Alt5>,
pub gpio_b0_11: gpio::GPIO_B0_11<Alt5>,
pub gpio_b1_00: gpio::GPIO_B1_00<Alt5>,
pub gpio_b1_01: gpio::GPIO_B1_01<Alt5>,
pub gpio_ad_b0_00: gpio::GPIO_AD_B0_00<Alt5>,
pub gpio_ad_b0_01: gpio::GPIO_AD_B0_01<Alt5>,
pub gpio_ad_b0_02: gpio::GPIO_AD_B0_02<Alt5>,
pub gpio_ad_b0_03: gpio::GPIO_AD_B0_03<Alt5>,
pub gpio_ad_b0_04: gpio::GPIO_AD_B0_04<Alt0>,
pub gpio_ad_b0_05: gpio::GPIO_AD_B0_05<Alt0>,
pub gpio_ad_b0_06: gpio::GPIO_AD_B0_06<Alt0>,
pub gpio_ad_b0_07: gpio::GPIO_AD_B0_07<Alt0>,
pub gpio_ad_b0_08: gpio::GPIO_AD_B0_08<Alt0>,
pub gpio_ad_b0_09: gpio::GPIO_AD_B0_09<Alt0>,
pub gpio_ad_b0_10: gpio::GPIO_AD_B0_10<Alt0>,
pub gpio_ad_b0_11: gpio::GPIO_AD_B0_11<Alt0>,
pub gpio_ad_b0_12: gpio::GPIO_AD_B0_12<Alt5>,
pub gpio_ad_b0_13: gpio::GPIO_AD_B0_13<Alt5>,
pub gpio_ad_b0_14: gpio::GPIO_AD_B0_14<Alt5>,
pub gpio_ad_b0_15: gpio::GPIO_AD_B0_15<Alt5>,
pub gpio_ad_b1_00: gpio::GPIO_AD_B1_00<Alt5>,
pub gpio_ad_b1_01: gpio::GPIO_AD_B1_01<Alt5>,
pub gpio_ad_b1_02: gpio::GPIO_AD_B1_02<Alt5>,
pub gpio_ad_b1_03: gpio::GPIO_AD_B1_03<Alt5>,
pub gpio_ad_b1_04: gpio::GPIO_AD_B1_04<Alt5>,
pub gpio_ad_b1_05: gpio::GPIO_AD_B1_05<Alt5>,
pub gpio_ad_b1_06: gpio::GPIO_AD_B1_06<Alt5>,
pub gpio_ad_b1_07: gpio::GPIO_AD_B1_07<Alt5>,
pub gpio_ad_b1_08: gpio::GPIO_AD_B1_08<Alt5>,
pub gpio_ad_b1_09: gpio::GPIO_AD_B1_09<Alt5>,
pub gpio_ad_b1_10: gpio::GPIO_AD_B1_10<Alt5>,
pub gpio_ad_b1_11: gpio::GPIO_AD_B1_11<Alt5>,
pub gpio_ad_b1_12: gpio::GPIO_AD_B1_12<Alt5>,
pub gpio_ad_b1_13: gpio::GPIO_AD_B1_13<Alt5>,
pub gpio_ad_b1_14: gpio::GPIO_AD_B1_14<Alt5>,
pub gpio_ad_b1_15: gpio::GPIO_AD_B1_15<Alt5>,
pub gpio_sd_b0_00: gpio::GPIO_SD_B0_00<Alt5>,
pub gpio_sd_b0_01: gpio::GPIO_SD_B0_01<Alt5>,
pub gpio_sd_b0_02: gpio::GPIO_SD_B0_02<Alt5>,
pub gpio_sd_b0_03: gpio::GPIO_SD_B0_03<Alt5>,
pub gpio_emc_04: gpio::GPIO_EMC_04<Alt5>,
pub gpio_emc_05: gpio::GPIO_EMC_05<Alt5>,
pub gpio_emc_06: gpio::GPIO_EMC_06<Alt5>,
pub gpio_emc_07: gpio::GPIO_EMC_07<Alt5>,
pub gpio_emc_08: gpio::GPIO_EMC_08<Alt5>,
pub gpio_emc_31: gpio::GPIO_EMC_31<Alt5>,
pub gpio_emc_32: gpio::GPIO_EMC_32<Alt5>,
pub gpr: GPR,
}
impl IOMUXC {
pub(crate) fn new(_: crate::ral::iomuxc::Instance) -> Self {
Self {
gpio_b0_00: gpio::GPIO_B0_00::new(),
gpio_b0_01: gpio::GPIO_B0_01::new(),
gpio_b0_02: gpio::GPIO_B0_02::new(),
gpio_b0_03: gpio::GPIO_B0_03::new(),
gpio_b0_10: gpio::GPIO_B0_10::new(),
gpio_b0_11: gpio::GPIO_B0_11::new(),
gpio_b1_00: gpio::GPIO_B1_00::new(),
gpio_b1_01: gpio::GPIO_B1_01::new(),
gpio_ad_b0_00: gpio::GPIO_AD_B0_00::new(),
gpio_ad_b0_01: gpio::GPIO_AD_B0_01::new(),
gpio_ad_b0_02: gpio::GPIO_AD_B0_02::new(),
gpio_ad_b0_03: gpio::GPIO_AD_B0_03::new(),
gpio_ad_b0_04: gpio::GPIO_AD_B0_04::new(),
gpio_ad_b0_05: gpio::GPIO_AD_B0_05::new(),
gpio_ad_b0_06: gpio::GPIO_AD_B0_06::new(),
gpio_ad_b0_07: gpio::GPIO_AD_B0_07::new(),
gpio_ad_b0_08: gpio::GPIO_AD_B0_08::new(),
gpio_ad_b0_09: gpio::GPIO_AD_B0_09::new(),
gpio_ad_b0_10: gpio::GPIO_AD_B0_10::new(),
gpio_ad_b0_11: gpio::GPIO_AD_B0_11::new(),
gpio_ad_b0_12: gpio::GPIO_AD_B0_12::new(),
gpio_ad_b0_13: gpio::GPIO_AD_B0_13::new(),
gpio_ad_b0_14: gpio::GPIO_AD_B0_14::new(),
gpio_ad_b0_15: gpio::GPIO_AD_B0_15::new(),
gpio_ad_b1_00: gpio::GPIO_AD_B1_00::new(),
gpio_ad_b1_01: gpio::GPIO_AD_B1_01::new(),
gpio_ad_b1_02: gpio::GPIO_AD_B1_02::new(),
gpio_ad_b1_03: gpio::GPIO_AD_B1_03::new(),
gpio_ad_b1_04: gpio::GPIO_AD_B1_04::new(),
gpio_ad_b1_05: gpio::GPIO_AD_B1_05::new(),
gpio_ad_b1_06: gpio::GPIO_AD_B1_06::new(),
gpio_ad_b1_07: gpio::GPIO_AD_B1_07::new(),
gpio_ad_b1_08: gpio::GPIO_AD_B1_08::new(),
gpio_ad_b1_09: gpio::GPIO_AD_B1_09::new(),
gpio_ad_b1_10: gpio::GPIO_AD_B1_10::new(),
gpio_ad_b1_11: gpio::GPIO_AD_B1_11::new(),
gpio_ad_b1_12: gpio::GPIO_AD_B1_12::new(),
gpio_ad_b1_13: gpio::GPIO_AD_B1_13::new(),
gpio_ad_b1_14: gpio::GPIO_AD_B1_14::new(),
gpio_ad_b1_15: gpio::GPIO_AD_B1_15::new(),
gpio_sd_b0_00: gpio::GPIO_SD_B0_00::new(),
gpio_sd_b0_01: gpio::GPIO_SD_B0_01::new(),
gpio_sd_b0_02: gpio::GPIO_SD_B0_02::new(),
gpio_sd_b0_03: gpio::GPIO_SD_B0_03::new(),
gpio_emc_04: gpio::GPIO_EMC_04::new(),
gpio_emc_05: gpio::GPIO_EMC_05::new(),
gpio_emc_06: gpio::GPIO_EMC_06::new(),
gpio_emc_07: gpio::GPIO_EMC_07::new(),
gpio_emc_08: gpio::GPIO_EMC_08::new(),
gpio_emc_31: gpio::GPIO_EMC_31::new(),
gpio_emc_32: gpio::GPIO_EMC_32::new(),
gpr: GPR(()),
}
}
}
pub struct GPR(());
impl GPR {
pub(crate) unsafe fn gpr26(&mut self) -> &crate::ral::RWRegister<u32> {
&(*crate::ral::iomuxc_gpr::IOMUXC_GPR).GPR26
}
pub(crate) unsafe fn gpr27(&mut self) -> &crate::ral::RWRegister<u32> {
&(*crate::ral::iomuxc_gpr::IOMUXC_GPR).GPR27
}
}