aboutsummaryrefslogtreecommitdiff
path: root/board/src
diff options
context:
space:
mode:
authorIan McIntyre <me@mciantyre.dev>2026-10-26 17:10:19 -0400
committerIan McIntyre <me@mciantyre.dev>2026-10-27 11:35:22 -0400
commitefe328a7bd17df1962a1db2a517c79f1e76a7b05 (patch)
treec9ca989bd272225b7bb2f01440c2b465d839651d /board/src
parent428ea28a9102d966eda5b9c39644ff66c5f59c59 (diff)
Change how board supports RAM-only programs
Just a refactor inside board. Activate the "ram" feature to target a RAM-only for your given bord. I'm adding the 1170EVK RAM support.
Diffstat (limited to 'board/src')
-rw-r--r--board/src/imxrt1010evk.rs2
-rw-r--r--board/src/imxrt1170evk_cm7.rs2
-rw-r--r--board/src/lib.rs2
3 files changed, 3 insertions, 3 deletions
diff --git a/board/src/imxrt1010evk.rs b/board/src/imxrt1010evk.rs
index 9bcf120..e8000af 100644
--- a/board/src/imxrt1010evk.rs
+++ b/board/src/imxrt1010evk.rs
@@ -2,7 +2,7 @@
use crate::ral;
-#[cfg(all(target_arch = "arm", not(feature = "imxrt1010evk-ram")))]
+#[cfg(all(target_arch = "arm", not(feature = "ram")))]
use imxrt1010evk_fcb as _;
#[cfg(target_arch = "arm")]
use panic_rtt_target as _;
diff --git a/board/src/imxrt1170evk_cm7.rs b/board/src/imxrt1170evk_cm7.rs
index 7d966eb..f1a72d7 100644
--- a/board/src/imxrt1170evk_cm7.rs
+++ b/board/src/imxrt1170evk_cm7.rs
@@ -2,7 +2,7 @@
use crate::ral;
-#[cfg(target_arch = "arm")]
+#[cfg(all(target_arch = "arm", not(feature = "ram")))]
use imxrt1170evk_fcb as _;
#[cfg(target_arch = "arm")]
use panic_rtt_target as _;
diff --git a/board/src/lib.rs b/board/src/lib.rs
index f4912be..ebc76ad 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(any(feature = "imxrt1010evk", feature = "imxrt1010evk-ram"))] {
+ } else if #[cfg(feature = "imxrt1010evk")] {
mod shared { pub mod imxrt10xx; }
use shared::imxrt10xx::prepare_pit;