mirror of
https://github.com/embassy-rs/embassy.git
synced 2025-09-27 04:10:25 +00:00

The examples in this case are designed for the IMXRT1060-EVK. The same chip is used in the Teensy 4.0/1, but that will probably get its own set of examples due to some differences such as the FCB.
13 lines
387 B
Rust
13 lines
387 B
Rust
use imxrt_rt::{Family, RuntimeBuilder};
|
|
|
|
fn main() {
|
|
RuntimeBuilder::from_flexspi(Family::Imxrt1060, 8 * 1024 * 1024)
|
|
.build()
|
|
.unwrap();
|
|
|
|
println!("cargo:rustc-link-arg-bins=--nmagic");
|
|
println!("cargo:rustc-link-arg-bins=-Tdefmt.x");
|
|
// Not link.x, as imxrt-rt needs to do some special things
|
|
println!("cargo:rustc-link-arg-bins=-Timxrt-link.x");
|
|
}
|