aboutsummaryrefslogtreecommitdiff
path: root/examples/mimxrt6
diff options
context:
space:
mode:
authorHiroaki Yutani <[email protected]>2025-05-06 09:09:22 +0900
committerHiroaki Yutani <[email protected]>2025-05-06 09:09:22 +0900
commit0460a924ac06a7dd33b4e50396948ba9bcb5374e (patch)
tree8d9dc305d058709557e61674bf28e7ae3637b142 /examples/mimxrt6
parent93ff90db04f06316f0992b65a0319ebdf74ce5c4 (diff)
chore: Wrap link_section attribute with unsafe
Diffstat (limited to 'examples/mimxrt6')
-rw-r--r--examples/mimxrt6/build.rs2
-rw-r--r--examples/mimxrt6/src/lib.rs6
2 files changed, 4 insertions, 4 deletions
diff --git a/examples/mimxrt6/build.rs b/examples/mimxrt6/build.rs
index 9c0ed3213..56010dfd6 100644
--- a/examples/mimxrt6/build.rs
+++ b/examples/mimxrt6/build.rs
@@ -25,7 +25,7 @@ fn main() {
25 .write_all( 25 .write_all(
26 format!( 26 format!(
27 r##" 27 r##"
28#[link_section = ".biv"] 28#[unsafe(link_section = ".biv")]
29#[used] 29#[used]
30static BOOT_IMAGE_VERSION: u32 = 0x{:02x}{:02x}{:02x}00; 30static BOOT_IMAGE_VERSION: u32 = 0x{:02x}{:02x}{:02x}00;
31"##, 31"##,
diff --git a/examples/mimxrt6/src/lib.rs b/examples/mimxrt6/src/lib.rs
index da6e14427..3c3ea1981 100644
--- a/examples/mimxrt6/src/lib.rs
+++ b/examples/mimxrt6/src/lib.rs
@@ -6,15 +6,15 @@ use {defmt_rtt as _, panic_probe as _};
6// auto-generated version information from Cargo.toml 6// auto-generated version information from Cargo.toml
7include!(concat!(env!("OUT_DIR"), "/biv.rs")); 7include!(concat!(env!("OUT_DIR"), "/biv.rs"));
8 8
9#[link_section = ".otfad"] 9#[unsafe(link_section = ".otfad")]
10#[used] 10#[used]
11static OTFAD: [u8; 256] = [0; 256]; 11static OTFAD: [u8; 256] = [0; 256];
12 12
13#[rustfmt::skip] 13#[rustfmt::skip]
14#[link_section = ".fcb"] 14#[unsafe(link_section = ".fcb")]
15#[used] 15#[used]
16static FCB: FlexSPIFlashConfigurationBlock = FlexSPIFlashConfigurationBlock::build(); 16static FCB: FlexSPIFlashConfigurationBlock = FlexSPIFlashConfigurationBlock::build();
17 17
18#[link_section = ".keystore"] 18#[unsafe(link_section = ".keystore")]
19#[used] 19#[used]
20static KEYSTORE: [u8; 2048] = [0; 2048]; 20static KEYSTORE: [u8; 2048] = [0; 2048];