diff options
| author | Dario Nieuwenhuis <[email protected]> | 2025-09-28 21:03:12 +0200 |
|---|---|---|
| committer | Dario Nieuwenhuis <[email protected]> | 2025-09-28 21:05:37 +0200 |
| commit | efe5b18f5d050bf19a5031f683ac24e23aad6746 (patch) | |
| tree | 2e637ed7b6416e5dc9e8cfdc6599823571a1197a /examples/nrf52840/src/bin/rtc.rs | |
| parent | 37fd0c7bce19d4618669a29bdd01945fb477eea6 (diff) | |
nrf/rtc: erase instance generic
Diffstat (limited to 'examples/nrf52840/src/bin/rtc.rs')
| -rw-r--r-- | examples/nrf52840/src/bin/rtc.rs | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/examples/nrf52840/src/bin/rtc.rs b/examples/nrf52840/src/bin/rtc.rs index a3df7da14..9d475df7f 100644 --- a/examples/nrf52840/src/bin/rtc.rs +++ b/examples/nrf52840/src/bin/rtc.rs | |||
| @@ -14,8 +14,7 @@ use {defmt_rtt as _, panic_probe as _}; | |||
| 14 | 14 | ||
| 15 | // 64 bit counter which will never overflow. | 15 | // 64 bit counter which will never overflow. |
| 16 | static TICK_COUNTER: AtomicU64 = AtomicU64::new(0); | 16 | static TICK_COUNTER: AtomicU64 = AtomicU64::new(0); |
| 17 | static RTC: Mutex<CriticalSectionRawMutex, RefCell<Option<Rtc<'static, embassy_nrf::peripherals::RTC0>>>> = | 17 | static RTC: Mutex<CriticalSectionRawMutex, RefCell<Option<Rtc<'static>>>> = Mutex::new(RefCell::new(None)); |
| 18 | Mutex::new(RefCell::new(None)); | ||
| 19 | 18 | ||
| 20 | #[embassy_executor::main] | 19 | #[embassy_executor::main] |
| 21 | async fn main(_spawner: Spawner) { | 20 | async fn main(_spawner: Spawner) { |
