Skip to content

Commit

Permalink
add more modules from imxrt1060
Browse files Browse the repository at this point in the history
- FlexCAN, FlexIO, LPI2C, SAI, USDHC
  • Loading branch information
hatimbt authored and Hatim Thayyil committed Nov 29, 2024
1 parent 3242b8b commit 17abb28
Show file tree
Hide file tree
Showing 7 changed files with 439 additions and 0 deletions.
54 changes: 54 additions & 0 deletions src/imxrt1050/flexcan.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
//! FlexCAN pin implementation
use super::pads::{
gpio_ad_b0::*, gpio_ad_b1::*, gpio_b0::*, gpio_b1::*, gpio_emc::*, gpio_sd_b1::*,
};

use crate::{
consts::*,
flexcan::{Pin, Rx, Tx},
Daisy,
};

//
// CAN1
//
can!(module: U1, alt: 2, pad: GPIO_AD_B1_08, signal: Tx, daisy: None);
can!(module: U1, alt: 2, pad: GPIO_B0_02, signal: Tx, daisy: None);
can!(module: U1, alt: 3, pad: GPIO_EMC_17, signal: Tx, daisy: None);
can!(module: U1, alt: 4, pad: GPIO_SD_B1_02, signal: Tx, daisy: None);
can!(module: U1, alt: 2, pad: GPIO_AD_B1_09, signal: Rx, daisy: Some(DAISY_FLEXCAN1_RX_GPIO_AD_B1_09));
can!(module: U1, alt: 2, pad: GPIO_B0_03, signal: Rx, daisy: Some(DAISY_FLEXCAN1_RX_GPIO_B0_03));
can!(module: U1, alt: 3, pad: GPIO_EMC_18, signal: Rx, daisy: Some(DAISY_FLEXCAN1_RX_GPIO_EMC_18));
can!(module: U1, alt: 4, pad: GPIO_SD_B1_03, signal: Rx, daisy: Some(DAISY_FLEXCAN1_RX_GPIO_SD_B1_03));

//
// CAN2
//
can!(module: U2, alt: 0, pad: GPIO_AD_B0_02, signal: Tx, daisy: None);
can!(module: U2, alt: 3, pad: GPIO_EMC_09, signal: Tx, daisy: None);
can!(module: U2, alt: 6, pad: GPIO_B1_08, signal: Tx, daisy: None);
can!(module: U2, alt: 6, pad: GPIO_AD_B0_14, signal: Tx, daisy: None);
can!(module: U2, alt: 0, pad: GPIO_AD_B0_03, signal: Rx, daisy: Some(DAISY_FLEXCAN2_RX_GPIO_AD_B0_03));
can!(module: U2, alt: 3, pad: GPIO_EMC_10, signal: Rx, daisy: Some(DAISY_FLEXCAN2_RX_GPIO_EMC_10));
can!(module: U2, alt: 6, pad: GPIO_AD_B0_15, signal: Rx, daisy: Some(DAISY_FLEXCAN2_RX_GPIO_AD_B0_15));
can!(module: U2, alt: 6, pad: GPIO_B1_09, signal: Rx, daisy: Some(DAISY_FLEXCAN2_RX_GPIO_B1_09));

/// Auto-generated DAISY values
mod daisy {
#![allow(unused)]

use super::Daisy;

pub const DAISY_FLEXCAN1_RX_GPIO_SD_B1_03: Daisy = Daisy::new(0x401f844c as *mut u32, 0);
pub const DAISY_FLEXCAN1_RX_GPIO_EMC_18: Daisy = Daisy::new(0x401f844c as *mut u32, 1);
pub const DAISY_FLEXCAN1_RX_GPIO_AD_B1_09: Daisy = Daisy::new(0x401f844c as *mut u32, 2);
pub const DAISY_FLEXCAN1_RX_GPIO_B0_03: Daisy = Daisy::new(0x401f844c as *mut u32, 3);

pub const DAISY_FLEXCAN2_RX_GPIO_EMC_10: Daisy = Daisy::new(0x401f8450 as *mut u32, 0);
pub const DAISY_FLEXCAN2_RX_GPIO_AD_B0_03: Daisy = Daisy::new(0x401f8450 as *mut u32, 1);
pub const DAISY_FLEXCAN2_RX_GPIO_AD_B0_15: Daisy = Daisy::new(0x401f8450 as *mut u32, 2);
pub const DAISY_FLEXCAN2_RX_GPIO_B1_09: Daisy = Daisy::new(0x401f8450 as *mut u32, 3);
}

use daisy::*;
63 changes: 63 additions & 0 deletions src/imxrt1050/flexio.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,63 @@
//! FlexIO pin implementation
use super::pads::{gpio_ad_b1::*, gpio_b0::*, gpio_b1::*, gpio_emc::*};

use crate::{flexio::Pin, Daisy};

//
// FlexIO 1
//
flexio!(module: 1, offset: 0, pad: GPIO_EMC_00, alt: 4, daisy: None);
flexio!(module: 1, offset: 1, pad: GPIO_EMC_01, alt: 4, daisy: None);
flexio!(module: 1, offset: 2, pad: GPIO_EMC_02, alt: 4, daisy: None);
flexio!(module: 1, offset: 3, pad: GPIO_EMC_03, alt: 4, daisy: None);
flexio!(module: 1, offset: 4, pad: GPIO_EMC_04, alt: 4, daisy: None);
flexio!(module: 1, offset: 5, pad: GPIO_EMC_05, alt: 4, daisy: None);
flexio!(module: 1, offset: 6, pad: GPIO_EMC_06, alt: 4, daisy: None);
flexio!(module: 1, offset: 7, pad: GPIO_EMC_07, alt: 4, daisy: None);
flexio!(module: 1, offset: 8, pad: GPIO_EMC_08, alt: 4, daisy: None);
flexio!(module: 1, offset: 9, pad: GPIO_EMC_09, alt: 4, daisy: None);
flexio!(module: 1, offset: 10, pad: GPIO_EMC_10, alt: 4, daisy: None);
flexio!(module: 1, offset: 11, pad: GPIO_EMC_11, alt: 4, daisy: None);
flexio!(module: 1, offset: 12, pad: GPIO_EMC_26, alt: 4, daisy: None);
flexio!(module: 1, offset: 13, pad: GPIO_EMC_27, alt: 4, daisy: None);
flexio!(module: 1, offset: 14, pad: GPIO_EMC_28, alt: 4, daisy: None);
flexio!(module: 1, offset: 15, pad: GPIO_EMC_29, alt: 4, daisy: None);

//
// FlexIO 2
//
flexio!(module: 2, offset: 0, pad: GPIO_B0_00, alt: 4, daisy: None);
flexio!(module: 2, offset: 1, pad: GPIO_B0_01, alt: 4, daisy: None);
flexio!(module: 2, offset: 2, pad: GPIO_B0_02, alt: 4, daisy: None);
flexio!(module: 2, offset: 3, pad: GPIO_B0_03, alt: 4, daisy: None);
flexio!(module: 2, offset: 4, pad: GPIO_B0_04, alt: 4, daisy: None);
flexio!(module: 2, offset: 5, pad: GPIO_B0_05, alt: 4, daisy: None);
flexio!(module: 2, offset: 6, pad: GPIO_B0_06, alt: 4, daisy: None);
flexio!(module: 2, offset: 7, pad: GPIO_B0_07, alt: 4, daisy: None);
flexio!(module: 2, offset: 8, pad: GPIO_B0_08, alt: 4, daisy: None);
flexio!(module: 2, offset: 9, pad: GPIO_B0_09, alt: 4, daisy: None);
flexio!(module: 2, offset: 10, pad: GPIO_B0_10, alt: 4, daisy: None);
flexio!(module: 2, offset: 11, pad: GPIO_B0_11, alt: 4, daisy: None);
flexio!(module: 2, offset: 12, pad: GPIO_B0_12, alt: 4, daisy: None);
flexio!(module: 2, offset: 13, pad: GPIO_B0_13, alt: 4, daisy: None);
flexio!(module: 2, offset: 14, pad: GPIO_B0_14, alt: 4, daisy: None);
flexio!(module: 2, offset: 15, pad: GPIO_B0_15, alt: 4, daisy: None);
flexio!(module: 2, offset: 16, pad: GPIO_B1_00, alt: 4, daisy: None);
flexio!(module: 2, offset: 17, pad: GPIO_B1_01, alt: 4, daisy: None);
flexio!(module: 2, offset: 18, pad: GPIO_B1_02, alt: 4, daisy: None);
flexio!(module: 2, offset: 19, pad: GPIO_B1_03, alt: 4, daisy: None);
flexio!(module: 2, offset: 20, pad: GPIO_B1_04, alt: 4, daisy: None);
flexio!(module: 2, offset: 21, pad: GPIO_B1_05, alt: 4, daisy: None);
flexio!(module: 2, offset: 22, pad: GPIO_B1_06, alt: 4, daisy: None);
flexio!(module: 2, offset: 23, pad: GPIO_B1_07, alt: 4, daisy: None);
flexio!(module: 2, offset: 24, pad: GPIO_B1_08, alt: 4, daisy: None);
flexio!(module: 2, offset: 25, pad: GPIO_B1_09, alt: 4, daisy: None);
flexio!(module: 2, offset: 26, pad: GPIO_B1_10, alt: 4, daisy: None);
flexio!(module: 2, offset: 27, pad: GPIO_B1_11, alt: 4, daisy: None);
flexio!(module: 2, offset: 28, pad: GPIO_B1_12, alt: 4, daisy: None);
flexio!(module: 2, offset: 29, pad: GPIO_B1_13, alt: 4, daisy: None);
flexio!(module: 2, offset: 30, pad: GPIO_B1_14, alt: 4, daisy: None);
flexio!(module: 2, offset: 31, pad: GPIO_B1_15, alt: 4, daisy: None);

// FlexIO on this chip does not have any daisy values.
81 changes: 81 additions & 0 deletions src/imxrt1050/flexpwm.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,81 @@
//! PWM implementation
use super::pads::{gpio_ad_b0::*, gpio_b0::*, gpio_b1::*, gpio_emc::*, gpio_sd_b0::*};
use crate::{
consts::*,
flexpwm::{Pin, A, B},
Daisy,
};

pwm!(module: U1, submodule: U0, alt: 1, pad: GPIO_SD_B0_00, output: A, daisy: Some(DAISY_FLEXPWM1_PWMA0_GPIO_SD_B0_00));
pwm!(module: U1, submodule: U0, alt: 1, pad: GPIO_SD_B0_01, output: B, daisy: Some(DAISY_FLEXPWM1_PWMB0_GPIO_SD_B0_01));
pwm!(module: U1, submodule: U3, alt: 1, pad: GPIO_AD_B0_10, output: A, daisy: Some(DAISY_FLEXPWM1_PWMA3_GPIO_AD_B0_10));
pwm!(module: U1, submodule: U3, alt: 1, pad: GPIO_AD_B0_11, output: B, daisy: Some(DAISY_FLEXPWM1_PWMB3_GPIO_AD_B0_11));
pwm!(module: U2, submodule: U2, alt: 2, pad: GPIO_B0_10, output: A, daisy: Some(DAISY_FLEXPWM2_PWMA2_GPIO_B0_10));
pwm!(module: U2, submodule: U2, alt: 2, pad: GPIO_B0_11, output: B, daisy: Some(DAISY_FLEXPWM2_PWMB2_GPIO_B0_11));
pwm!(module: U1, submodule: U3, alt: 6, pad: GPIO_B1_01, output: B, daisy: Some(DAISY_FLEXPWM1_PWMB3_GPIO_B1_01));
pwm!(module: U1, submodule: U3, alt: 6, pad: GPIO_B1_00, output: A, daisy: Some(DAISY_FLEXPWM1_PWMA3_GPIO_B1_00));
pwm!(module: U4, submodule: U2, alt: 1, pad: GPIO_EMC_04, output: A, daisy: Some(DAISY_FLEXPWM4_PWMA2_GPIO_EMC_04));
pwm!(module: U4, submodule: U2, alt: 1, pad: GPIO_EMC_05, output: B, daisy: None);
pwm!(module: U2, submodule: U0, alt: 1, pad: GPIO_EMC_06, output: A, daisy: Some(DAISY_FLEXPWM2_PWMA0_GPIO_EMC_06));
pwm!(module: U2, submodule: U1, alt: 1, pad: GPIO_EMC_08, output: A, daisy: Some(DAISY_FLEXPWM2_PWMA1_GPIO_EMC_08));

mod daisy {
#![allow(unused)]
use super::Daisy;

pub const DAISY_FLEXPWM1_PWMA3_GPIO_SD_B1_00: Daisy = Daisy::new(0x401f8454 as *mut u32, 0);
pub const DAISY_FLEXPWM1_PWMA3_GPIO_EMC_12: Daisy = Daisy::new(0x401f8454 as *mut u32, 1);
pub const DAISY_FLEXPWM1_PWMA3_GPIO_EMC_38: Daisy = Daisy::new(0x401f8454 as *mut u32, 2);
pub const DAISY_FLEXPWM1_PWMA3_GPIO_AD_B0_10: Daisy = Daisy::new(0x401f8454 as *mut u32, 3);
pub const DAISY_FLEXPWM1_PWMA3_GPIO_B1_00: Daisy = Daisy::new(0x401f8454 as *mut u32, 4);
pub const DAISY_FLEXPWM1_PWMA0_GPIO_EMC_23: Daisy = Daisy::new(0x401f8458 as *mut u32, 0);
pub const DAISY_FLEXPWM1_PWMA0_GPIO_SD_B0_00: Daisy = Daisy::new(0x401f8458 as *mut u32, 1);
pub const DAISY_FLEXPWM1_PWMA1_GPIO_EMC_25: Daisy = Daisy::new(0x401f845c as *mut u32, 0);
pub const DAISY_FLEXPWM1_PWMA1_GPIO_SD_B0_02: Daisy = Daisy::new(0x401f845c as *mut u32, 1);
pub const DAISY_FLEXPWM1_PWMA2_GPIO_EMC_27: Daisy = Daisy::new(0x401f8460 as *mut u32, 0);
pub const DAISY_FLEXPWM1_PWMA2_GPIO_SD_B0_04: Daisy = Daisy::new(0x401f8460 as *mut u32, 1);
pub const DAISY_FLEXPWM1_PWMB3_GPIO_SD_B1_01: Daisy = Daisy::new(0x401f8464 as *mut u32, 0);
pub const DAISY_FLEXPWM1_PWMB3_GPIO_EMC_13: Daisy = Daisy::new(0x401f8464 as *mut u32, 1);
pub const DAISY_FLEXPWM1_PWMB3_GPIO_EMC_39: Daisy = Daisy::new(0x401f8464 as *mut u32, 2);
pub const DAISY_FLEXPWM1_PWMB3_GPIO_AD_B0_11: Daisy = Daisy::new(0x401f8464 as *mut u32, 3);
pub const DAISY_FLEXPWM1_PWMB3_GPIO_B1_01: Daisy = Daisy::new(0x401f8464 as *mut u32, 4);
pub const DAISY_FLEXPWM1_PWMB0_GPIO_EMC_24: Daisy = Daisy::new(0x401f8468 as *mut u32, 0);
pub const DAISY_FLEXPWM1_PWMB0_GPIO_SD_B0_01: Daisy = Daisy::new(0x401f8468 as *mut u32, 1);
pub const DAISY_FLEXPWM1_PWMB1_GPIO_EMC_26: Daisy = Daisy::new(0x401f846c as *mut u32, 0);
pub const DAISY_FLEXPWM1_PWMB1_GPIO_SD_B0_03: Daisy = Daisy::new(0x401f846c as *mut u32, 1);
pub const DAISY_FLEXPWM1_PWMB2_GPIO_EMC_28: Daisy = Daisy::new(0x401f8470 as *mut u32, 0);
pub const DAISY_FLEXPWM1_PWMB2_GPIO_SD_B0_05: Daisy = Daisy::new(0x401f8470 as *mut u32, 1);
pub const DAISY_FLEXPWM2_PWMA3_GPIO_SD_B1_02: Daisy = Daisy::new(0x401f8474 as *mut u32, 0);
pub const DAISY_FLEXPWM2_PWMA3_GPIO_EMC_19: Daisy = Daisy::new(0x401f8474 as *mut u32, 1);
pub const DAISY_FLEXPWM2_PWMA3_GPIO_AD_B0_00: Daisy = Daisy::new(0x401f8474 as *mut u32, 2);
pub const DAISY_FLEXPWM2_PWMA3_GPIO_AD_B0_09: Daisy = Daisy::new(0x401f8474 as *mut u32, 3);
pub const DAISY_FLEXPWM2_PWMA3_GPIO_B1_02: Daisy = Daisy::new(0x401f8474 as *mut u32, 4);
pub const DAISY_FLEXPWM2_PWMA0_GPIO_EMC_06: Daisy = Daisy::new(0x401f8478 as *mut u32, 0);
pub const DAISY_FLEXPWM2_PWMA0_GPIO_B0_06: Daisy = Daisy::new(0x401f8478 as *mut u32, 1);
pub const DAISY_FLEXPWM2_PWMA1_GPIO_EMC_08: Daisy = Daisy::new(0x401f847c as *mut u32, 0);
pub const DAISY_FLEXPWM2_PWMA1_GPIO_B0_08: Daisy = Daisy::new(0x401f847c as *mut u32, 1);
pub const DAISY_FLEXPWM2_PWMA2_GPIO_EMC_10: Daisy = Daisy::new(0x401f8480 as *mut u32, 0);
pub const DAISY_FLEXPWM2_PWMA2_GPIO_B0_10: Daisy = Daisy::new(0x401f8480 as *mut u32, 1);
pub const DAISY_FLEXPWM2_PWMB3_GPIO_SD_B1_03: Daisy = Daisy::new(0x401f8484 as *mut u32, 0);
pub const DAISY_FLEXPWM2_PWMB3_GPIO_EMC_20: Daisy = Daisy::new(0x401f8484 as *mut u32, 1);
pub const DAISY_FLEXPWM2_PWMB3_GPIO_AD_B0_01: Daisy = Daisy::new(0x401f8484 as *mut u32, 2);
pub const DAISY_FLEXPWM2_PWMB3_GPIO_B1_03: Daisy = Daisy::new(0x401f8484 as *mut u32, 3);
pub const DAISY_FLEXPWM2_PWMB0_GPIO_EMC_07: Daisy = Daisy::new(0x401f8488 as *mut u32, 0);
pub const DAISY_FLEXPWM2_PWMB0_GPIO_B0_07: Daisy = Daisy::new(0x401f8488 as *mut u32, 1);
pub const DAISY_FLEXPWM2_PWMB1_GPIO_EMC_09: Daisy = Daisy::new(0x401f848c as *mut u32, 0);
pub const DAISY_FLEXPWM2_PWMB1_GPIO_B0_09: Daisy = Daisy::new(0x401f848c as *mut u32, 1);
pub const DAISY_FLEXPWM2_PWMB2_GPIO_EMC_11: Daisy = Daisy::new(0x401f8490 as *mut u32, 0);
pub const DAISY_FLEXPWM2_PWMB2_GPIO_B0_11: Daisy = Daisy::new(0x401f8490 as *mut u32, 1);
pub const DAISY_FLEXPWM4_PWMA0_GPIO_EMC_00: Daisy = Daisy::new(0x401f8494 as *mut u32, 0);
pub const DAISY_FLEXPWM4_PWMA0_GPIO_AD_B1_08: Daisy = Daisy::new(0x401f8494 as *mut u32, 1);
pub const DAISY_FLEXPWM4_PWMA1_GPIO_EMC_02: Daisy = Daisy::new(0x401f8498 as *mut u32, 0);
pub const DAISY_FLEXPWM4_PWMA1_GPIO_AD_B1_09: Daisy = Daisy::new(0x401f8498 as *mut u32, 1);
pub const DAISY_FLEXPWM4_PWMA2_GPIO_EMC_04: Daisy = Daisy::new(0x401f849c as *mut u32, 0);
pub const DAISY_FLEXPWM4_PWMA2_GPIO_B1_14: Daisy = Daisy::new(0x401f849c as *mut u32, 1);
pub const DAISY_FLEXPWM4_PWMA3_GPIO_EMC_17: Daisy = Daisy::new(0x401f84a0 as *mut u32, 0);
pub const DAISY_FLEXPWM4_PWMA3_GPIO_B1_15: Daisy = Daisy::new(0x401f84a0 as *mut u32, 1);
}

#[allow(unused)]
use daisy::*;
62 changes: 62 additions & 0 deletions src/imxrt1050/lpi2c.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,62 @@
//! I2C pin implementations
use super::pads::{gpio_ad_b0::*, gpio_ad_b1::*, gpio_sd_b0::*};
use crate::{
consts::*,
lpi2c::{Pin, Scl, Sda},
Daisy,
};

//
// I2C1
//
i2c!(module: U1, alt: 3, pad: GPIO_AD_B1_00, signal: Scl, daisy: Some(DAISY_LPI2C1_SCL_GPIO_AD_B1_00));
i2c!(module: U1, alt: 3, pad: GPIO_AD_B1_01, signal: Sda, daisy: Some(DAISY_LPI2C1_SDA_GPIO_AD_B1_01));

//
// I2C2
//

// TODO

//
// I2C3
//
i2c!(module: U3, alt: 1, pad: GPIO_AD_B1_07, signal: Scl, daisy: Some(DAISY_LPI2C3_SCL_GPIO_AD_B1_07));
i2c!(module: U3, alt: 1, pad: GPIO_AD_B1_06, signal: Sda, daisy: Some(DAISY_LPI2C3_SDA_GPIO_AD_B1_06));
i2c!(module: U3, alt: 2, pad: GPIO_SD_B0_00, signal: Scl, daisy: Some(DAISY_LPI2C3_SCL_GPIO_SD_B0_00));
i2c!(module: U3, alt: 2, pad: GPIO_SD_B0_01, signal: Sda, daisy: Some(DAISY_LPI2C3_SDA_GPIO_SD_B0_01));

//
// I2C4
//
i2c!(module: U4, alt: 0, pad: GPIO_AD_B0_12, signal: Scl, daisy: Some(DAISY_LPI2C4_SCL_GPIO_AD_B0_12));
i2c!(module: U4, alt: 0, pad: GPIO_AD_B0_13, signal: Sda, daisy: Some(DAISY_LPI2C4_SDA_GPIO_AD_B0_13));

/// Auto-generated Daisy constants
mod daisy {
#![allow(unused)]

use super::Daisy;

pub const DAISY_LPI2C1_SCL_GPIO_SD_B1_04: Daisy = Daisy::new(0x401f84cc as *mut u32, 0);
pub const DAISY_LPI2C1_SCL_GPIO_AD_B1_00: Daisy = Daisy::new(0x401f84cc as *mut u32, 1);
pub const DAISY_LPI2C1_SDA_GPIO_SD_B1_05: Daisy = Daisy::new(0x401f84d0 as *mut u32, 0);
pub const DAISY_LPI2C1_SDA_GPIO_AD_B1_01: Daisy = Daisy::new(0x401f84d0 as *mut u32, 1);
pub const DAISY_LPI2C2_SCL_GPIO_SD_B1_11: Daisy = Daisy::new(0x401f84d4 as *mut u32, 0);
pub const DAISY_LPI2C2_SCL_GPIO_B0_04: Daisy = Daisy::new(0x401f84d4 as *mut u32, 1);
pub const DAISY_LPI2C2_SDA_GPIO_SD_B1_10: Daisy = Daisy::new(0x401f84d8 as *mut u32, 0);
pub const DAISY_LPI2C2_SDA_GPIO_B0_05: Daisy = Daisy::new(0x401f84d8 as *mut u32, 1);
pub const DAISY_LPI2C3_SCL_GPIO_EMC_22: Daisy = Daisy::new(0x401f84dc as *mut u32, 0);
pub const DAISY_LPI2C3_SCL_GPIO_SD_B0_00: Daisy = Daisy::new(0x401f84dc as *mut u32, 1);
pub const DAISY_LPI2C3_SCL_GPIO_AD_B1_07: Daisy = Daisy::new(0x401f84dc as *mut u32, 2);
pub const DAISY_LPI2C3_SDA_GPIO_EMC_21: Daisy = Daisy::new(0x401f84e0 as *mut u32, 0);
pub const DAISY_LPI2C3_SDA_GPIO_SD_B0_01: Daisy = Daisy::new(0x401f84e0 as *mut u32, 1);
pub const DAISY_LPI2C3_SDA_GPIO_AD_B1_06: Daisy = Daisy::new(0x401f84e0 as *mut u32, 2);
pub const DAISY_LPI2C4_SCL_GPIO_EMC_12: Daisy = Daisy::new(0x401f84e4 as *mut u32, 0);
pub const DAISY_LPI2C4_SCL_GPIO_AD_B0_12: Daisy = Daisy::new(0x401f84e4 as *mut u32, 1);
pub const DAISY_LPI2C4_SDA_GPIO_EMC_11: Daisy = Daisy::new(0x401f84e8 as *mut u32, 0);
pub const DAISY_LPI2C4_SDA_GPIO_AD_B0_13: Daisy = Daisy::new(0x401f84e8 as *mut u32, 1);
}

use daisy::*;
6 changes: 6 additions & 0 deletions src/imxrt1050/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,14 @@
//! functions are tagged with `imxrt-iomuxc` traits.
mod adc;
mod flexcan;
mod flexio;
mod flexpwm;
mod lpi2c;
mod lpspi;
mod lpuart;
mod sai;
mod usdhc;

mod pads;
pub use pads::*;
Loading

0 comments on commit 17abb28

Please sign in to comment.