Search found 1 match

by jssfr2342
Fri Apr 07, 2023 8:57 am
Forum: Rust
Topic: Using RTC memory
Replies: 1
Views: 47540

Re: Using RTC memory

Working example for a u32 (value is persisted across deep sleep resets for instance):

Code: Select all

#[link_section = ".rtc.data"]
static mut MY_FANCY_VARIABLE: u32 = 0;