aboutsummaryrefslogtreecommitdiff
path: root/embassy-nrf/src/time_driver.rs
diff options
context:
space:
mode:
Diffstat (limited to 'embassy-nrf/src/time_driver.rs')
-rw-r--r--embassy-nrf/src/time_driver.rs8
1 files changed, 6 insertions, 2 deletions
diff --git a/embassy-nrf/src/time_driver.rs b/embassy-nrf/src/time_driver.rs
index 366f270c0..4c2438a00 100644
--- a/embassy-nrf/src/time_driver.rs
+++ b/embassy-nrf/src/time_driver.rs
@@ -16,9 +16,13 @@ pub(crate) use pac::rtc0_ns as rtc0;
16 16
17fn rtc() -> &'static rtc0::RegisterBlock { 17fn rtc() -> &'static rtc0::RegisterBlock {
18 #[cfg(not(feature = "nrf9160"))] 18 #[cfg(not(feature = "nrf9160"))]
19 unsafe { &*pac::RTC1::ptr() } 19 unsafe {
20 &*pac::RTC1::ptr()
21 }
20 #[cfg(feature = "nrf9160")] 22 #[cfg(feature = "nrf9160")]
21 unsafe { &*pac::RTC1_NS::ptr() } 23 unsafe {
24 &*pac::RTC1_NS::ptr()
25 }
22} 26}
23 27
24// RTC timekeeping works with something we call "periods", which are time intervals 28// RTC timekeeping works with something we call "periods", which are time intervals