aboutsummaryrefslogtreecommitdiff
path: root/board/src
diff options
context:
space:
mode:
authorIan McIntyre <ianpmcintyre@gmail.com>2023-03-13 06:50:57 -0400
committerIan McIntyre <me@mciantyre.dev>2025-11-11 08:24:38 -0500
commit6f5633761528e484e8d0963c7ac59403f7210093 (patch)
treef0a5f5ac03cc0a477491332adbe33bb2278faa4a /board/src
parent74d463340a87ff38a96c03a380bbed7c3ee56ba4 (diff)
Prototype API to build runtime in RAM
Just a proof-of-concept. The new inspect_elf test seems to show that we're building the correct image. We need another commit in order to help the program run in FlexRAM.
Diffstat (limited to 'board/src')
-rw-r--r--board/src/imxrt1010evk.rs2
-rw-r--r--board/src/lib.rs2
2 files changed, 2 insertions, 2 deletions
diff --git a/board/src/imxrt1010evk.rs b/board/src/imxrt1010evk.rs
index 9a596e9..9bcf120 100644
--- a/board/src/imxrt1010evk.rs
+++ b/board/src/imxrt1010evk.rs
@@ -2,7 +2,7 @@
use crate::ral;
-#[cfg(target_arch = "arm")]
+#[cfg(all(target_arch = "arm", not(feature = "imxrt1010evk-ram")))]
use imxrt1010evk_fcb as _;
#[cfg(target_arch = "arm")]
use panic_rtt_target as _;
diff --git a/board/src/lib.rs b/board/src/lib.rs
index ebc76ad..f4912be 100644
--- a/board/src/lib.rs
+++ b/board/src/lib.rs
@@ -10,7 +10,7 @@ cfg_if::cfg_if! {
mod teensy4;
pub use teensy4::*;
- } else if #[cfg(feature = "imxrt1010evk")] {
+ } else if #[cfg(any(feature = "imxrt1010evk", feature = "imxrt1010evk-ram"))] {
mod shared { pub mod imxrt10xx; }
use shared::imxrt10xx::prepare_pit;