Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,9 @@ jobs:
--example=hal_pwm --example=rtic_pwm
--example=hal_i2c_mpu9250 --example=hal_i2c_lcd1602
--example=rtic_usb_serial --example=rtic_usb_test_class --example=rtic_usb_keypress --example=rtic_usb_mouse
# Some basic vmu rt1170 samples
- --features=board/vmu-rt1170-cm7 --example=hal_led
--example=rtic_defmt_rtt
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
Expand Down
15 changes: 15 additions & 0 deletions board/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,10 @@ optional = true
version = "0.1"
optional = true

[target.thumbv7em-none-eabihf.dependencies.vmu-rt1170-fcb]
version = "0.1"
optional = true

[features]
imxrt1010evk = [
"sai",
Expand Down Expand Up @@ -139,6 +143,17 @@ imxrt1180evk-cm33 = [
"defmt-rtt",
"panic-probe",
]

vmu-rt1170-cm7 = [
"imxrt-iomuxc/imxrt1170",
"imxrt-ral/imxrt1176_cm7",
"imxrt-hal/imxrt1170",
"vmu-rt1170-fcb",
"defmt-rtt",
"panic-probe",
"imxrt-log",
]

logging-defmt = ["imxrt-log/defmt"]

# Some boards (Teensy 4) require a resource
Expand Down
14 changes: 14 additions & 0 deletions board/build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ fn main() -> Result<(), Box<dyn std::error::Error>> {
"imxrt1170evk-cm7",
"imxrt1060evk",
"imxrt1180evk-cm33",
"vmu-rt1170-cm7",
],
);
emit_cfg_checks("chip", ["imxrt1010", "imxrt1060", "imxrt1170", "imxrt1180"]);
Expand Down Expand Up @@ -95,6 +96,19 @@ fn main() -> Result<(), Box<dyn std::error::Error>> {
println!("cargo:rustc-cfg=board=\"imxrt1180evk-cm33\"");
println!("cargo:rustc-cfg=chip=\"imxrt1180\"");
}
"vmu_rt1170_cm7" => {
imxrt_rt::RuntimeBuilder::from_flexspi(
imxrt_rt::Family::Imxrt1170,
16 * 1024 * 1024,
)
.rodata(imxrt_rt::Memory::Dtcm)
.stack_size(32 * 1024)
.build()?;
println!("cargo:rustc-cfg=board=\"vmu-rt1170-cm7\"");
println!("cargo:rustc-cfg=chip=\"imxrt1170\"");
println!("cargo:rustc-cfg=family=\"imxrt11xx\"");
}

_ => continue,
}
return Ok(());
Expand Down
4 changes: 4 additions & 0 deletions board/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,10 @@ mod board_impl;
#[path = "imxrt1180evk-cm33.rs"]
mod board_impl;

#[cfg(board = "vmu-rt1170-cm7")]
#[path = "vmu-rt1170-cm7.rs"]
mod board_impl;

#[cfg(feature = "lcd1602")]
pub use lcd_1602_i2c as lcd1602;

Expand Down
Loading