aboutsummaryrefslogtreecommitdiff
path: root/embassy-nrf/src/time_driver.rs
diff options
context:
space:
mode:
authorDion Dokter <[email protected]>2021-10-11 15:31:25 +0200
committerDion Dokter <[email protected]>2021-10-11 15:31:25 +0200
commit995cd01cbcb2470b9ecdd953daae0cfb3aaa2e99 (patch)
treead3a55b6b9adde5609d4c07d5717ba0fcca6239c /embassy-nrf/src/time_driver.rs
parent4643727fea491e91f5afe9532775d0e422f744f6 (diff)
ran fmt
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