aboutsummaryrefslogtreecommitdiff
path: root/src/lib.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib.rs')
-rw-r--r--src/lib.rs8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/lib.rs b/src/lib.rs
index 46963e6..f4c933c 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -198,11 +198,19 @@
#![cfg_attr(all(target_arch = "arm", target_os = "none"), no_std)]
+/// `__ecc_ram_config` bit set when ITCM ECC is active.
+const ECC_ITCM_ACTIVE: u32 = 1 << 0;
+/// `__ecc_ram_config` bit set when DTCM ECC is active.
+const ECC_DTCM_ACTIVE: u32 = 1 << 1;
+
cfg_if::cfg_if! {
if #[cfg(all(target_arch = "arm", target_os = "none"))] {
mod target;
pub use target::*;
} else {
+ /// `__ecc_ram_config` bit set when OCRAM ECC is active.
+ const ECC_OCRAM_ACTIVE: u32 = 1 << 2;
+
mod host;
pub use host::*;
}